解决方案 »
- 事务里执行update的疑问
- 关于备份事务日志的疑问
- 返回某字符串中最后一个特殊符号后面的字符串
- 如何用一张表更新另一张表,急!!!!
- mssql2000 exec难题,求高手!急
- 内存不足,死锁 , 错误: 701,严重性: 17,状态: 123
- 这两个sql语句怎么合成一句?
- 如何不显示 n Row(s) affected
- 如何写这个sql 语句? 一个表中存在很多重复的记录,'xxh'是其中的一个字段,希望写一条sql语句,显示出不同xxh出现的次数,以及相应xx
- ms sql server的系统存储过程中,经常用到的竟有那些,比如说,得到访问SQL SERVER 数据库的人数的存储过程
- 两语句执行相同吗?
- 能否将几条语句用一个 insert代替,谢谢。
SELECT distinct stock.st_gc as 库存工厂,gc as 基础工厂
from stock left join isgc on (stock.st_gc=isgc.gc)
and gc is null
SELECT distinct stock.st_gc as 库存工厂
from stock left join isgc on (stock.st_gc=isgc.gc)
where gc is null
SELECT distinct stock.st_gc as 库存工厂,gc as 基础工厂 from stock left join isgc on (stock.st_gc=isgc.gc) where gc is null --加这个条件就可以啦
distinct stock.st_gc as 库存工厂
from
stock left join isgc on stock.st_gc=isgc.gc
where
gc is null