基本信息
文件名称:SQL Server查询技巧与基础操作.pdf
文件大小:700.15 KB
总页数:42 页
更新时间:2026-01-22
总字数:约3.13万字
文档摘要

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

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

TableName??OrderBySortFieldSelect*From#temptable?-

Whereno=6Andno10DropTable#temptable

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

Access: