select count(field1) from tablename group by field1 having count>1
解决方案 »
- 请教一个sql
- SQL-server2012如何连接JDBC
- 菜鸟求助SQL SERVER语法错误问题
- 求一SQL语
- 请问如何将一个服务器里的表通过select * into 到另一个服务器里去?
- 零长度的varchar 字段与NULL占用空间问题
- 如何把字符串转换为日期格式?
- 請問如何將這個instert 語句改為update的功能,多謝!
- 在pro*c中使用光标的高手请进
- 在执行 xp_cmdshell 的过程中出错。调用 'CreateProcess' 失败,错误代码: '5'。
- 十万火急!!!哪位老兄能帮帮我!我在用VB编程时,用鼠标双击MSFlexgrid时,如何定位我双击过的哪一行,哪一格?我已经搞了多少天了,焦头烂额!!!谁能帮我,有100分可以拿!!!我的信箱:[email protected]
- PB 7.0 连接 INFORMIX 检索结果不正确()
select * from tablename,
(select col,count(*) from tablename group by col having(count(*))>1) aa
where tablename.col=aa.col
对不起,刚才写错了!
select * from tablename where field1 in (select field1 from tablename group by field1 having count(*)>1)