求个MYSQL查询条件
$sql = "SELECT order_id,order_sn,invoice_no,shipping_name,sign_building FROM " .$ecs->table('order_info')." WHERE user_id = '$user_id' AND shipping_status = '0' ";
想加个条件,sign_building(默认为空)这个字段只要内容才可以查询。 $sql = "SELECT order_id,order_sn,invoice_no,shipping_name,sign_building FROM " .$ecs->table('order_info'). " WHERE sign_building <> '' and user_id = '$user_id' AND shipping_status = '0' "; where sign_building is not null
页:
[1]