gpt4 book ai didi

php - SQL 查询错误

转载 作者:可可西里 更新时间:2023-11-01 08:06:34 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
How to delete from multiple tables in MySQL?

我有一个 SQL 查询如下

$deletebills=mysql_query("delete from bills,billsitems,cashier_trans where bills.bills_ID=billsitems.billsItems_BillItemSerial and bills.bills_ID=cashier_trans.cashier_trans_DocId and bills.bills_ID='".$_REQUEST['bills_ID']."'");

错误:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where bills.bills_ID=billsitems.billsItems_BillItemSerial and bills.bills_ID=cas' at line 1

我该如何解决。

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com