CREATE CURSOR MyProducts (ProdID I , OurPrice Y NULL)
INSERT INTO MyProducts VALUES (1,1.10) &&matches but is not marked for deletion
INSERT INTO MyProducts VALUES (2,2.20) &&matches and is marked
INSERT INTO MyProducts VALUES (3,3.30) &&matches and is marked
CREATE CURSOR MSRPList (ProdID I , ProdCategory I Null, MSRP Y, Discontinued L)
INSERT INTO MSRPList VALUES (1, 9, 1.00, .f.)
INSERT INTO MSRPList VALUES (2, 8, 2.00, .t.)
INSERT INTO MSRPList VALUES (3, 7, 3.00, .t.)
DELETE MyProducts FROM MSRPList WHERE MSRPList.ProdID = MyProducts.ProdID AND MSRPList.discontinued = .t.
SELECT * from MyProducts
所以你的这个用法应该是
delete a from b where a.id=b.id
找到了更好的连接方式。在mysql8.0.20开始,删除了对块嵌套循环的支持,服务器找到了更好的连接方式,在以前使用块嵌套循环的地方使用散列连接,要比嵌套循环更方便更有效。MySQL是一个关系型数据库管理系统,由瑞典MySQLAB公司开发,属于Oracle旗下产品。delete from 表名 where 数据库中对应的列名1='"+txtbox1.Text+"',数据库中对应的列名2='"+txtbox2.Text+"' and 数据库中对应的列名3='"+txtbox3.Text+"';欢迎分享,转载请注明来源:内存溢出
评论列表(0条)