Quickly query the length of each field in the table?

xiaoxiao2021-03-06  41

SELECT Object_name (ID) AS Name

, c.Name AS field name

, t.name data type

, C.PREC AS length

From syscolumns c

Inner Join

SYSTYPES T

On C.XUSERTYPE = T.XUSERTYPE

Where object_name (ID) = 'Table' - change table to your table name

Go

转载请注明原文地址:https://www.9cbs.com/read-65931.html

New Post(0)