mysql> SELECT DATABASE(). ------------ | DATABASE() | ------------ | test . ------------ | DATABASE() | ------------ | test | ------------
当前数据库包含的表信息:
mysql> SHOW TABLES. --------------------- | Tables in test mysql> SHOW TABLES. --------------------- | Tables in test | --------------------- | mytable1 | | mytable2 | ---------------------