你好· 想请问个sql的问题
假如我有个表:A 里面有 shuliang,shangxian,cangku等字段
我要求出本表中所有shuliang>shangxian的数据
select * from A where shuliang>(select shangxian from A where cangku='oo1')
这样写的话只能够查出一个仓库的 能够指教下嘛
...全文
37回复打赏收藏
MS-sql中很好的对本表字段进行比较
你好· 想请问个sql的问题 假如我有个表:A 里面有 shuliang,shangxian,cangku等字段 我要求出本表中所有shuliang>shangxian的数据 select * from A where shuliang>(select shangxian from A where cangku='oo1') 这样写的话只能够查出一个仓库的 能够指教下嘛