數據庫基礎知識彙總

判斷數據庫中是否存在某張表 MySQL: select t.table_name from information_schema.TABLES t where t.TABLE_SCHEMA ="database_name" and t.TABLE_NAME ="table_name"; 下面是一個實例,檢測user_db數據庫中是否存在tbl_user_info表。直接上圖,也許效果會更棒。
相關文章
相關標籤/搜索