SET t_points=t_points+ (SELECT points from sites where url='$url') where username='$login_session'";如果子查询SELECT points from sites where url='$url'返回一些东西,那么查询就可以正常工作。如果不返回</em
我在下面的表格中保存了订单验证的历史:
select * where validation_date > (select max(validation_date)where order = 1345 and status = 'REJECT')只有当状态为REJECT时,它才能按预期工作,如果子查询没有<
我正在处理一个表(" item "),它有字段"Aprovado“,它是一个整数,用来检查项目是否被批准(1代表是,0代表否)(不是我的表,我会选择合适的布尔值)。我知道有一些商品,我知道有很多商品的"Aprovado“设置为1。(我成功地查询了"SELECT * FROM Item ORDER BY ItemID ASC")mysql_select_db($theDatabase, $db) ord