select col1,col2,col3 from table1 where col2=6 or col2=7
解决方案 »
- 如何把远程服务器的数据库备份到本地服务器上?
- 请问谁知道哪里有iPlanet Server Products 下载??
- 据说是最好的分页存储过程,就是有点小问题,请大家一起来完善。
- 报表中遇到的sql问题
- 奇怪,一台服务器把SQLSERVER2K
- 有一个几千条的txt 如何调用bulk insert 更新到数据库
- 关于日志文件
- 有一表: T1(id,name),要把一条新记录插入指定Id(如第二条)之后,用sql怎么实现??
- zhuzhichao 救我 —— SQL Server的远程传输 ???
- 怎样用delphi程序实现sql server数据库备份?
- 这段trigger的代码有问题吗?在线等待,马上送分
- 小问题:数据库里的字段类型是binary(20),我怎么把它显示出来??
(select col2 from tablename group by col2 having count(*)>1 )
select * from tablename where col2 in
(select col2 from tablename group by col2 having count(*)>1 )
where col2 in(select col2 from table1 group by col2 having count(col2)>1)
order by col2