常用SQL语句分享

  发布时间:2025-11-05 08:38:10   作者:玩站小弟   我要评论
复制#查看实例参数例如: showvariableslike%innodb%; showglobalvariableslike%innodb%; 。
常用SQL语句分享
复制# 查看实例参数 例如:  show variables like%innodb%;  show global variables like%innodb%;  # 查看实例状态,常用例如:  show status likeuptime%;  show global status likeconnection%;  # 查看数据库链接:  show processlist;  show full processlist;  # 查询某个表的句分结构:  show createtable tb_name;  # 查询某个表的b2b信息网详细字段信息:  show full columns from tb_name;  # 查询某个表的全部索引信息:  show indexfrom tb_name;  # 查询某个库以cd开头的服务器托管表:  show tables likecd%;  # 查询某个库中的所有视图:  show table status where comment=view;  # 查询某个用户的WordPress模板权限:  show grants fortest_user@%;  1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.
  • Tag:

相关文章

最新评论