• mysql注入测试中and与or的区别


    1、这是整个表内容:

     -----------------------------------------------------------

     2、select * from host where id='1' and '1'='1'  和 select * from host where id='1' and '1'='2'

     ---------

     ----------------------------------------------------------------------------------------

     3、select * from host where id='1' or '1'='1' 和 select * from host where id='1' or '1'='2'

    ps:因为没有id=5 且1=2为False,所以为空

    ----------------------------------------------------------------------------

     ps:虽然没有id=5,但是1=1为True,所有全部显示了,这时id参数有没有都无所谓

    ---------------------------------------------------------------------------- 

     总结一下就是使用and时,所有条件必须同时符合才会显示,否则为NULL,or表示只要有一个符合时,就显示符合的那个条件的数据。

    奶奶问孙子:4+1等于几 孙子说:等于6-1。 奶奶说:你明明知道答案,为什么不说? 孙子说:年轻人不讲5的……..
  • 相关阅读:
    ngInclude与script加载模板
    ng-model-options
    angular模板加载 ----ng-template
    ngBind ngBindTemplate ngBindHtml
    ng-switch
    ng-show与ng-if区别
    运维教给我什么
    路漫漫其修远兮,吾将上下而求索
    那些让我们继续坚持下去句子
    随手记
  • 原文地址:https://www.cnblogs.com/jasy/p/12674141.html
Copyright © 2020-2023  润新知