【 求一个常用的sql语句 】

hellofellow 2003-10-17 10:19:57
我打算从表中读取一个提交人的字段"reqMan",可以用"select reqMan from 表"语句;但是因为提交人有重复项,如何每个提交人只提取一次,即同时有不能让reqMan重复,
如何实现
谢谢各位了!!
...全文
27 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
银狐被占用 2003-10-17
  • 打赏
  • 举报
回复
同意txlicenhe(马可)
sunshareforever 2003-10-17
  • 打赏
  • 举报
回复
select distinct reqMan from 表A where reqMan not in (select reqMan from 表B)

笔者好像没有提及B表有哇
dgljf 2003-10-17
  • 打赏
  • 举报
回复
使用 DISTINCT 您就可以消除重複,並且只看到獨一無二的作者識別碼:

zjcxc 元老 2003-10-17
  • 打赏
  • 举报
回复
select distinct reqMan from 表
Dennis618 2003-10-17
  • 打赏
  • 举报
回复
select reqMan from 表 group by reqMan
select distinct reqMan from 表
dafu71 2003-10-17
  • 打赏
  • 举报
回复
select distinct reqMan from 表

select max(reqMan) from 表 group by reqMan
txlicenhe 2003-10-17
  • 打赏
  • 举报
回复
select distinct reqMan from 表

select reqMan from 表 group by reqMan

aierong 2003-10-17
  • 打赏
  • 举报
回复
select distinct reqMan from tablename
yoki 2003-10-17
  • 打赏
  • 举报
回复
select distinct reqMan from 表
gmlxf 2003-10-17
  • 打赏
  • 举报
回复
select distinct reqMan from 表
select reqMan from 表 group by reqMan

34,575

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧