没有指定行的语法
你要查某行可以这样select identity(int,1,1) as row,* into #temp from yourtable
select * from #temp where row=你的行
drop table #temp
你要查某行可以这样select identity(int,1,1) as row,* into #temp from yourtable
select * from #temp where row=你的行
drop table #temp
解决方案 »
- 这句的linq语句是什么???
- 连续插入几万条记录,为什么有的sql server执行很快,有的很慢,并且执行慢的机器上sqlserver的CPU占用率只有1%,
- 登录sql是报错! 急求解决!!! 在线等!!!!
- 想根据输入表名,执行不同的操作
- 怎么写出这个我想要的SQL!!!
- sql中的判断问题...高手帮忙吧 发愁啊 50分 在线等
- 在sql_server中如何为XML字段内容分页???
- 如何将结果值中的某一字段数据group by以后合并到一个字段
- sqlserver2000:代理程序处于质疑状态。在最近10分钟内没有响应
- 用bcp如何实现客户端的txt文本导入服务器?
- 行转列的存储过程如何写?
- SQL7在2000 SERVER 上安装,到最后出错,求助??
哪儿有责中需求?
select identity(int,1,1) as row,* into #temp from yourtable
select * from #temp a where a.row=你的行
drop table #temp
在数据库中不是有地址指针吗??我记得在Oracle中都行的,,不知道在MSSQL和access中怎么搞..
alter table yourtable add row int identity(1,1)
select * from yourtable where row=你的行
alter table yourtable drop column row
试试吧