📜  如何检查 sql server 中列的默认值 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:08.179000             🧑  作者: Mango

代码示例1
SELECT object_definition(default_object_id) AS definition
FROM   sys.columns
WHERE  name      ='colname'
AND    object_id = object_id('dbo.tablename')