SQL常用語句整理
SQL Server查詢所有列:
SELECT tb.name AS table_name, t.name AS type_name, c.* FROM sys.all_columns AS c INNER JOIN sys.types AS t ON t.system_type_id = c.system_type_id INNER JOIN sys.tables AS tb ON tb.object_id = c.object_id WHERE t.name LIKE '%text%' OR t.name LIKE '%image%'
原創作者:http://www.rzrgm.cn/huangsheng/

浙公網安備 33010602011771號