这个语句可以这样写不.本来是:selete * from table where sal=200 or sal=300

这个语句可以这样写不.
本来是:selete * from table where sal=200 or sal=300 or sal=400
可以写成这样不:selete * from table where sal=200,300(或者sal=200,sal=300)
范俊华 1年前 已收到1个回答 举报

xyx_ATF 花朵

共回答了13个问题采纳率:84.6% 举报

不可以,而且用or不走索引
推荐你这样写
selete * from table where sal in (200,300,400)

1年前

9
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 0.017 s. - webmaster@yulucn.com