jacob
V2EX  ›  问与答

这条 sql 语句啥意思

  •  
  •   jacob · Dec 16, 2014 · 2581 views
    This topic created in 4255 days ago, the information mentioned may be changed or developed.
    select * from pages where special&$v limit 1


    &是什么,会不会是=啊.
    8 replies    2014-12-16 17:58:44 +08:00
    jy02201949
        1
    jy02201949  
       Dec 16, 2014
    &不是连接符么
    jy02201949
        2
    jy02201949  
       Dec 16, 2014
    我胡乱猜的。。。不要在意。。。。。。。。。。。。
    skye
        3
    skye  
       Dec 16, 2014
    123123
        4
    123123  
       Dec 16, 2014
    位运算符
    shepherd
        5
    shepherd  
       Dec 16, 2014
    把它看作一个条件判断就可以了吧
    jacob
        6
    jacob  
    OP
       Dec 16, 2014
    虽然知道了按位与的操作,但是看不懂目的何在
    123123
        7
    123123  
       Dec 16, 2014
    首先你要明确位运算之后的结果
    0以外的值表明符合条件
    66beta
        8
    66beta  
       Dec 16, 2014
    楼主你就在之前那个帖子里问行了,这里没上下文
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3309 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 10:51 · PVG 18:51 · LAX 03:51 · JFK 06:51
    ♥ Do have faith in what you're doing.