information_schema数据库

字段
information_schema.schemata schema_name
information_schema.tables table_name, table_schema
information_schema.columns column_name, table_name, table_schema

Information_schema(数据库)(MySQL中默认的数据库)

SCHEMATA(表):存储了MySQL下每一个数据库的相关信息

                  schema_name(字段):数据库名

TABLES(表):存储了MySQL下每一个表的相关信息

                  TABLE_NAME(字段):数据表名称

                  TABLE_SCHEMA(字段):该数据表属于哪一个数据库

COLUMNS(库):存储了MySQL下每一个数据表中的所有列名(字段名)

                  COLUMN_NAME(字段):字段名称

                  TABLE_NAME(字段):该字段属于哪一个数据表

                  TALBE_SCHEMA(字段):当前字段所属数据表所在的数据库名称

注意:这三张表在information_schema数据库下面,在SQL注入过程中不能直接指定表名,

要使用“数据库名.数据表名”的形式,例如:information_schema.tables

posted @ 2023-11-16 23:09  敬畏虚空  阅读(8)  评论(0编辑  收藏  举报