`
lili.cn
  • 浏览: 9627 次
  • 性别: Icon_minigender_2
  • 来自: 杭州
社区版块
存档分类
最新评论

sqlsever sql

SQL 
阅读更多

方便的复制一条数据

insert into dbo.t2 (id,f1,f2,f3,f4)select 'id1',f1,f2,f3,f4 from dbo.t2

快速查询1条数据

with temp as (select row_number() over(order by name) as rownum, ia.id from dbo.t3) select * from temp where rownum between 1 and 1

0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics