mysql怎么查询表中的数据库名
mysql查询表中的数据库名的语法:“show databases”;
mysql查询表中的数据库名的方法:
1.查询所有数据库,sql语句为:“show databases;”
2.查询指定数据库中所有表名,sql语句为:
selecttable_namefrominformation_schema.tables
wheretable_schema='database_name'andtable_type='basetable';
mysql查询表中的数据库名的语法:“show databases”;
mysql查询表中的数据库名的方法:
1.查询所有数据库,sql语句为:“show databases;”
2.查询指定数据库中所有表名,sql语句为:
selecttable_namefrominformation_schema.tables
wheretable_schema='database_name'andtable_type='basetable';