求一个sql语句!! select * from phone where code=(select code from s_code where id='1131')这个语句肯定是错的,就是where后面的条件用查询,怎么写? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from phone where code in (select code from s_code where id='1131') select A.* from phone Ainner join s_code B on A.code=B.code and B.[id]='1131' select * from phone a, s_code bwhere a.code=b.codeand b.id='1131'个人觉得用in效率不高 出随机数 数据库同步问题(分不成问题,要多少给多少---另开贴) 急求答案!MSDTC服务死活不可用! 这个SQL语句如何写,数据库中的日期是字符串。 高手请进!!一定给分的。 急救,这个循环为什么停不了??? 如何根据合同明细表及已发货明细表,来计算合同未发货的数量? sql server存储过程在VB数据环境中应用问题 如何把表里的数据生成插入脚本? 请各位高手帮忙看看我这条SQL语句写得是否合理?谢谢!! sql_server的建表语句,怎么在Access建表中使用出错??? SQL SERVER中有没有取余数的函数
inner join s_code B on A.code=B.code and B.[id]='1131'
from phone a, s_code b
where a.code=b.code
and b.id='1131'
个人觉得用in效率不高