举个栗子:
SHOW COLUMNS FROM ldcode
结果输出如图
pg✿ SELECT * FROM INFORMATION_SCHEMA.COLUMNS T WHERE T.TABLE_CATALOG='用户角色名' AND TABLE_NAME='表名称'
举个栗子:
SELECT table_schema,table_name,column_name,udt_name,character_maximum_length,data_type,ordinal_position
FROM information_schema.columns t
WHERE t.table_catalog='actuarial'
AND table_name ='ldcode'
order by ordinal_position
结果输出如图
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)