MySQL查詢所有資料庫表出錯,MySQL資料庫表出錯

來源:互聯網
上載者:User

MySQL查詢所有資料庫表出錯,MySQL資料庫表出錯

1、錯誤描述

1 queries executed, 0 success, 1 errors, 0 warnings查詢:show tables錯誤碼: 1046No database selected執行耗時   : 0 sec傳送時間   : 0 sec總耗時      : 0 sec

2、錯誤原因

   show tables;


3、解決辦法

   use test;

   show tables;


查詢mysql資料庫中所有表名

SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = '資料庫名'
建立個視圖 將語句放入 然後正常匯出
 
mysql資料庫多表查詢的問題

你可以這樣查 select * from goods,category where goods.c_id==category.c_id 我不知道你的具體情況,給你個列子,這樣就可以查詢多表了,希望對你有協助
 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.