mysql between 的用法 ?

mysql between 的用法 


红糖糍粑
浏览 1386回答 2
2回答

德玛西亚99

SELECT&nbsp;*&nbsp;FROM&nbsp;`p_archives_3`&nbsp;WHERE&nbsp;`picsad` between 1113 and 1122等同于SELECT&nbsp;*&nbsp;FROM&nbsp;`p_archives_3`&nbsp;WHERE&nbsp;`picsad` >= 1113 and `picsad`<=1122你要保证picsad是数字类型的

回首忆惘然

SELECT&nbsp;*&nbsp;FROM&nbsp;p_archives_3&nbsp;WHERE&nbsp;picsad > 1113 and picsad < 1122SELECT * FROM p_archives_3 WHERE `picsad between 1113 and 1122 and picsad <> 1113 and picsad <>1122
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

MySQL