SQL Server查询技巧与基础操作.pdf

1.在SQLServer中查询时显示行号的方法(必须包含into语句)

SelectnoIdentity(int,1,1),*Into#temptableFrom

TableName‑‑OrderBySortFieldSelect*From#temptable‑-

Whereno=6Andno10DropTable#temptable

2从数据库中随机抽取N条记录

Access:

文档评论(0)

1亿VIP精品文档

相关文档