网络营销电子商务研究中心

网络营销电子商务研究中心 (https://www.0058.net/index.php)
-   MySQL (https://www.0058.net/forumdisplay.php?f=76)
-   -   Mysql语句中查询字段中大于某个数且小于某个数之间的条件怎么设定 (https://www.0058.net/showthread.php?t=5025)

Kairi 2015-03-05 06:05 AM

Mysql语句中查询字段中大于某个数且小于某个数之间的条件怎么设定
 
如我要查大于10000的数据就是SELECT * FORM tables WHERE price > 10000;小于10000就是SELECT * FORM tables WHERE price > 10000;现在我要查 大于1000小于2000的,就是 1000<price<2000怎么查?

Kankakee 2015-03-05 06:06 AM

SELECT * FORM tables WHERE price > 10000 and price < 20000


All times are GMT +8. The time now is 11:27 PM.

Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.