sql
点点朋
这个作者很懒,什么都没留下…
展开
-
sql之函数STUFF的应用
表结构 t_Item FItemClassID 生产计划号 品号 机台号 10001 1 a #1 10001 1 b #2 10001 1 a #3 10001 2 c #6 10001 2 c #10 10001 3 d #5 10001 4 e #8原创 2013-08-01 16:36:45 · 980 阅读 · 0 评论 -
sql查询语句
去除重复 delete from [cxp_sx].[dbo].[查询] where name in (select name from [cxp_sx].[dbo].[查询] group by name having count(name) > 1) and no not in (select MAX(no) from [cxp_sx].[dbo].[查询]原创 2013-10-03 00:34:14 · 464 阅读 · 0 评论