码迷,mamicode.com
首页 >  
搜索关键字:msyql information_schema    ( 943个结果
MySQL-死锁查询
1、查询是否锁表 show OPEN TABLES where In_use > 0; 查询到相对应的进程 然后 kill id 2、查询进程 show processlist 补充: 查看正在锁的事务 SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS; 查 ...
分类:数据库   时间:2020-01-30 22:43:02    阅读次数:111
批量修改表前缀
SELECT CONCAT( 'ALTER TABLE ', table_name, ' RENAME TO db_', substring(table_name, 4), ';' ) FROM information_schema. TABLES WHERE table_name LIKE 'ct ...
分类:其他好文   时间:2020-01-28 17:23:51    阅读次数:72
mysql 删除以某字符串开头的表
Select 'SET FOREIGN_KEY_CHECKS = 0;'unionSelect CONCAT( 'drop table ', table_name, ';' )FROM information_schema.tablesWhere table_name LIKE 'as_baiqis ...
分类:数据库   时间:2020-01-27 17:26:47    阅读次数:323
sqli-labs 1-10
可以开始第一关: 1-10关都是GET型 MYSQL基本用法: 查库:select schema_name from information_schema.schemata; 查表:select table_name from information_schema.tables where tabl ...
分类:数据库   时间:2020-01-27 13:57:42    阅读次数:87
【MySQL】MySQL 查看表结构简单命令
一、简单描述表结构,字段类型 desc tabl_name; 显示表结构,字段类型,主键,是否为空等属性,但不显示外键。 例如:desc table_name 二、查询表中列的注释信息 select * from information_schema.columnswhere table_schem ...
分类:数据库   时间:2020-01-26 17:30:13    阅读次数:91
sqli lab 11-12
查库: select schema_name from information_schema.schemata;查表: select table_name from information_schema.tables where table_schema='security';查列: select ...
分类:数据库   时间:2020-01-22 23:57:45    阅读次数:178
获取数据表列相关数据
原文:获取数据表列相关数据 虽然本人在开发数据库时,不太使用视图,但是还是知道 如何获取视图中使用的所有表列: SELECT * FROM INFORMATION_SCHEMA.VIEW_COLUMN_USAGE View Code 如何获取包含视图所有表: SELECT * FROM INFORM... ...
分类:其他好文   时间:2020-01-17 10:17:42    阅读次数:71
LESS-1
爆表payload ?id=-1' union select 1,2,group_concat(table_name) from information_schema.tables where table_schema=database() --+ 查到 emails,referers,uagent ...
分类:其他好文   时间:2020-01-11 18:32:52    阅读次数:76
mysql 操作
全局查看某表的字段 SELECT * FROM information_schema.`COLUMNS` WHERE COLUMN_NAME = "XXX"; 全局查看某表 SELECT * FROM information_schema.`TABLES` WHERE TABLE_NAME = "X ...
分类:数据库   时间:2020-01-10 12:22:20    阅读次数:65
数据库容量信息查看语句
查询所有数据库的总大小 mysql> use information_schema; mysql> select concat(round(sum(DATA_LENGTH/1024/1024),2),'MB') as data from TABLES; 统计所有库数据量(常用) 说明:每张表数据量=... ...
分类:数据库   时间:2020-01-08 18:49:40    阅读次数:173
943条   上一页 1 ... 8 9 10 11 12 ... 95 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!