根据表名查询详细信息

--适用于sqlserver2005,mysql,其他数据库未用过,不确定
SELECT * from information_schema.columns WHERE table_name = '表名';

猜你喜欢

转载自pepple.iteye.com/blog/2076207