开发者

MySQL 5.x - Can you explain this weirdness?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜