第一个表格名称= car:
jni.jar
AND第二个表格名称=预订:
car_id,company,model
代码
car_id,booking_date
答案 0 :(得分:-1)
$ sq = mysqli_query($ db," SELECT * FROM car as c where where not EXISTS( SELECT * FROM预订为b WHERE c.car_id = b.car_id AND b.drop_date< =' $ date' AND b.pickup_date> =' $ date')");