使用如下命令:
select
table_schema,
table_name,
column_name,
column_type,
column_key,
is_nullable,
column_default,
column_comment,
character_set_name
from information_schema.columns where table_schema=\'库名\' and table_name=\'表名\';
使用如下命令:
select
table_schema,
table_name,
column_name,
column_type,
column_key,
is_nullable,
column_default,
column_comment,
character_set_name
from information_schema.columns where table_schema=\'库名\' and table_name=\'表名\';
相关文章: