select table_name from information_schema.tables where substr(information_schema.tables.table_schema,1,1)='p';
我想问下这句 mysql语句的意思,如果将p 改为 i 显示的结果会有不同 数据库 pikachu(渗透pikachu的环境)
select table_name from information_schema.tables where substr(information_schema.tables.table_schema,1,1)='p';
substr(str,1,1)表示待截取字符串str,第二个参数表示截取的索引位置,从0开始,1就表示第二个字符开始,第三个参数表示要截取的长度。
查询表名第二个字符为p的表名。
如果换成i就是查询第二个字符为i的表名了。
substr(要截取的字符串,从哪开始截(下标),截取的长度)