我正在使用 excel 连接到 mysql 数据库
我正在这样做:
rs.Find "rowid='105'"
If Not rs.EOF Then cn.Execute "delete from batchinfo where rowid='105'"
它运作良好
但是,我需要能够匹配多列上的数据,例如:
rs. find "rowid='105'" and "something='sometext'" and "somethingelse='moretext'"
我需要知道 rs.find 是否匹配所有数据。
我怎样才能做到这一点?
据此我不能: https ://web.archive.org/web/1/http://articles.techrepublic%2ecom%2ecom/5100-10878_11-1045830.html#
但是也许有一种方法可以让我 rs.execute “一些选择语句”有人可以帮忙吗?
这对我有用吗,然后我会检查EOF:
rs.Filter "LastName='Adams' and FirstName='Lamont'"