Chinaunix首页 | 论坛 | 博客
  • 博客访问: 236717
  • 博文数量: 59
  • 博客积分: 2016
  • 博客等级: 大尉
  • 技术积分: 660
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-04 17:30
文章分类
文章存档

2013年(1)

2011年(2)

2010年(7)

2009年(30)

2008年(19)

我的朋友

分类: LINUX

2008-09-18 09:57:21

要在sql数据库查数据库时候,经常会要求去掉某条字段的重复记录。
select distinct temp_rfid_serial,* from production_profile_workstation where temp_rfid_serial is not null and factory_id is not null
 
distinct就是去掉重复temp_rfid_serial字段函数。
阅读(794) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~