【sql】個人筆記

個人筆記

  1. 查詢數據庫表
select table_name ,create_time , engine, table_collation, table_comment from information_schema.tables 
where table_schema = (select database()) and table_name like '%%' order by create_time desc 
  1. 查詢數據庫表的個數
SELECT COUNT(*) from information_schema.tables where table_schema = (select database())
  1. 修改最大數據包
SET GLOBAL max_allowed_packet = 2*1024*1024*10;
  1. 查看最大數據包
SHOW VARIABLES LIKE '%max_allowed_packet%';
  1. 心跳
SELECT USER();
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章