找回密碼
 註冊
搜索
查看: 2434|回復: 0

[MSSQL] 查看Table內各欄位的定序(Collation)

[複製鏈接]
發表於 2018-6-6 14:45:19 | 顯示全部樓層 |閱讀模式
[mw_shl_code=sql,true]SELECT name, collation_name
FROM sys.columns
WHERE OBJECT_ID IN ( SELECT OBJECT_ID
FROM sys.objects
WHERE type = 'U'
AND name = 'TableName')[/mw_shl_code]

Reference: https://blog.sqlauthority.com/20 ... olumn-t-sql-script/
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

Archiver|手機版|彩色筆小沛的知識庫

GMT+8, 2024-11-21 17:13 , Processed in 0.018742 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回復 返回頂部 返回列表