是否有可以返回表中列类型的 SQL 语句?
使用 SQL Server:
SELECT DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'yourSchemaName' AND TABLE_NAME = 'yourTableName' AND COLUMN_NAME = 'yourColumnName'