???
select * from tb where condi2 select * from tb where condi=condi1
select * from tb where condi2 select * from tb where condi=condi1
解决方案 »
- 请教一条SQL 2005合并多行的查询语句
- 学习使用临时表展开BOM,写的一个存储过程,结果导致小于零的,直接为零,不知道为什么
- 求帮忙改写这个程序,使得分组(group by)也能用在里面
- 带变量的存储过程
- 做主键用int增长好,还是用uniqueident(newid())好
- 向达人求助,关于SQL远程链接ORCAL服务器的问题
- 问存储过程中的三个在一起的单引号的含义!
- 使用BCP导入EXCEL数据--在线等
- disinct的问题,如果要按某字段排序则同时disinct作用到该项
- 哪本 MSSQL 书比较经典,权威
- 请教:如何用sql语句取得存储过程的结构
- 100分求助,大家帮帮忙呀!!!!!!!!!!
declare cursor_insert scroll cursor for select * from 你的表
open cursor_insert
fetch ABSOLUTE 5 from cursor_insert
close cursor_insert
deallocate cursor_insert
create table T1
(id int primary key,
name char(10))---查找第n 条
select top 1 * from t1 where id in ( select top n-1 id from t1)如果没有主键 如下表
create table T1
(id int , name char(10))---查找第n 条
select identity(int,1,1) as id ,* into #tt from t1
select * from #tt where id =n