首页 >后端开发 >php教程 >Mysql 数据库有关问题,该语句是什么意思

Mysql 数据库有关问题,该语句是什么意思

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原创
2016-06-13 11:58:52981浏览

Mysql 数据库问题,该语句是什么意思

$query = "select orderid from orders where  <br />               customerid = $customerid and  <br />               amount > ".$_SESSION['total_price']."-.001 and //这句是什么意思? <br />               amount < ".$_SESSION['total_price']."+.001 and  //这句是什么意思? <br />               date = '$date' and <br />               order_status = 'PARTIAL' and <br />               ship_name = '$ship_name' and <br />               ship_address = '$ship_address' and <br />               ship_city = '$ship_city' and <br />               ship_state = '$ship_state' and <br />               ship_zip = '$ship_zip' and <br />               ship_country = '$ship_country'"; 


------解决方案--------------------
total_price 取值上下浮动0.001
------解决方案--------------------
在PHP中断点调试看一下 $query 的实际内容就明白了。

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn