MySQL导出表结构

-- 导出表结构
SELECT A.TABLE_SCHEMA,
       A.TABLE_NAME,
       A.TABLE_COMMENT
FROM INFORMATION_SCHEMA.TABLES A
WHERE A.TABLE_SCHEMA = '$table_name';
This entry was posted in 默认分类 and tagged . Bookmark the permalink.