开发者

MySQL 5.x - Can you explain this weirdness?

开发者 https://www.devze.com 2023-02-21 20:45 出处:网络
Running the query ... SELECT !(!0), ! !0, !!0 AS WTF; in MySQL yields the following output ... -------------------------

Running the query ...

SELECT !(!0), ! !0, !!0 AS WTF;

in MySQL yields the following output ...

-------------------------
  !(!0) |  ! !0  |  WTF  
-------------------------
     0  |    0    |  1     # <- What's going on here?

I can't se开发者_开发百科em to find anything in the Docs that would explain this. Can you?


That's a known bug in mysql regarding operator parsing.

0

精彩评论

暂无评论...
验证码 换一张
取 消