select DISTINCT data_type from COLUMNS where table_name='表名' 用ConCat();构造生成代码。。。。。 转载于:https://www.cnblogs.com/gaocong/p/5103335.html