获取当前使用的数据库名称 select database(); 获取表完整结构 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 database(); 获取表完整结构 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='表明';