
数据库
changnan85
逆水行舟不进则退
人无远虑必有近忧
展开
-
批量修改mysql表结构信息
use information_schema;select CONCAT('ALTER TABLE `',table_schema,'`.`',table_name,'`',' CHANGE COLUMN ','`',column_name,'` `' -- source col name,column_name,'` ' -- change c原创 2013-10-25 10:34:21 · 1580 阅读 · 0 评论 -
mysql 查询表结构信息的方法
use information_schemaselect * from columns where table_name='表名'原创 2013-10-23 12:10:49 · 481 阅读 · 0 评论