我想通过查询检索序列的定义。我已经用触发器做了这个:
USE dbName
SELECT c.text FROM sys.syscomments c
INNER JOIN (
SELECT object_id FROM SYS.triggers WHERE name = 'triggerName'
) t ON c.id = t.object_id
答案 0 :(得分:0)
您可以看到有关所有序列的信息,如下所示:
SELECT * FROM sys.sequences