Get table name, field type, corresponding length

SELECT

a.name table name,

b.name field name,

c.name field type,

c.length field length

FROM

sysobjects a,

syscolumns b,

systypes c

WHERE

a.id = b.id

AND a.name = 'KQ_INFOS_METERING_SCHEME'

AND a.xtype = 'U'

AND b.xtype = c.xtype

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326111354&siteId=291194637