我正在使用准备好的语句对我的数据库进行一些操作。我有如下表:
+--------------------------------------------------------+
|Field | Type | Size | Key | Text |
+--------------------------------------------------------+
|X1DEL | Char | 1 | 2 | Status |
|X1CMP | Zoned | 3 | 1 | Company No. |
|X1ORD | Zoned | 9 | 2 | Order Number |
|X1TYPE | Char | 1 | 1 | Transaction Type |
|X1ORDT | Zoned | 8 | 0 | Order Date |
|X1CUST | Char | 10 | 0 | Customer Number |
|X1PO | Char | 20 | 0 | PO Number |
|X1OTOT | Zoned | 11 | 2 | Order Total |
+--------------------------------------------------------+
我正在delete from my_table where field=?
针对单个参数执行一个删除查询。我已经创建了 2 个参数的查询,因为delete from my_table where field=? and type=?
现在我想再次执行 4 到 5 个参数的查询。我正在编写一个查询,因为delete from my_table where field=?,type=?,size=? and key=?
我已经尝试过这个查询但没有得到结果。