当前位置:网站首页>MySQL in and not in() empty list error

MySQL in and not in() empty list error

2022-07-01 11:07:00 tuhoooo

Original address : MySQL IN and NOT IN () Empty list error

Welcome to my blog : http://blog.duhbb.com/

  • If you take the initiative in SQL Write in statement IN (), May be an error ; Common in MyBatis Or spell it yourself SQL In the sentence , If you use literal quantity, you must pay attention to this ;
  • If you are IN (SELECT xxx FROM xxx) This kind of words , Even if SELECT xxx FROM xxx If it is empty, no error will be reported .

More curious is , I feel this is quite simple , Why? MySQL Just don't deal with it ?

If I understand MySQL Source code , I'll add this feature , Hey !

原网站

版权声明
本文为[tuhoooo]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/182/202207011104439802.html