下面的查询用于从数据库中获取所有表
1 = select top 1 name
from sys.tables
where object_id = (select top 1 object_id
from (select top 5 object_id
from sys.tables
order by object_id
)sq
order by object_id DESC
)如何使用类似的sys.columns方法枚举数据库中的所有易受攻击的列
谢谢
发布于 2020-01-24 23:26:58
为什么不简单地使用row_number():
select t.name
from (select t.*, row_number() over (order by object_id) as seq
from sys.tables t
) t
where seq = 5;https://stackoverflow.com/questions/59899069
复制相似问题