SQL
xinnian25
这个作者很懒,什么都没留下…
展开
-
group by 和 order 的应用
调整前效果 见附件第一个图片 select 前面字段,a.pack_qty,后面字段 from 表 调整后效果 见附件第二个图片 select 前面字段,sum(a.pack_qty),后面字段 from 表 group by 前面字段,后面字段 order by a.row_id 总结 注意 group b...原创 2011-10-12 16:51:33 · 140 阅读 · 0 评论 -
日期有空格等查询不到的问题
问题代码 select * from om_exp a, om_exp_item b where a.exp_no = b.exp_no and a.exp_type = 'OM' and a.fast_flag = '0' and a.updt_name = 'BKLOC' and a.updt_date between to_da...原创 2011-11-11 11:23:54 · 282 阅读 · 0 评论