求SQL语句 select a.a1, a.a2, a.a3 from A a join B b on a.a1=b.b1*cos(b.b2)+b.b3 不知道我理解错没有 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select L from t awhere exists(select 1 from t where a.L1=b1*cos(b2)+b3) A和B是表table里面的两行。它们都在table里面select L1,L2,L3, L1*cos(L2)+L3 As resultfrom tablewhere L='B'然后我需要用那个结果resultselect L from tablewhere L1=result select L from tablewhere L1 in(select L1*cos(L2)+L3 As resultfrom tablewhere L='B') select L from t awhere exists(select 1 from t where a.L1=b1*cos(b2)+b3 and L1='B') select L from t awhere exists(select 1 from t where a.L1=L1*cos(L2)+L3);小试一下。 数据表关联 这个查询怎么写? 百分,百分,求一个百分百正确的答案。。。 如何学习SQL Server 2000 高手进:尝试多种方法,sql 本地仍无法组册,1433端口开着 时间问题:求教 SQL中的累乘问题 高分在线急等:客户机无法连接服务器的数据库 在SQL Server服务器端写一个存储过程, 要求每隔10分钟自动运行一次 请问各位,如何用Convert函数把一个小数转化为百分数! 请问:如果一个查询的字段中含有单引号,该如何查询呢?请高手指教!谢谢! 请问从多张表中导入数据到一张表。
where exists(select 1 from t where a.L1=b1*cos(b2)+b3)
from table
where L='B'然后我需要用那个结果result
select L
from table
where L1=result
from table
where L1 in(
select L1*cos(L2)+L3 As result
from table
where L='B')
where exists(select 1 from t where a.L1=b1*cos(b2)+b3 and L1='B')
where exists(select 1 from t where a.L1=L1*cos(L2)+L3);
小试一下。