如何在Visual FoxPro中的“In”中运行超过24个值条款?
我正在使用foxpro 5.0
我有超过3000条记录来运行查询。例如我的查询是
delete from mytable.dbf where fieldname not in (1,2,3,......3909)
它不会执行。因为foxpro只允许In子句中的24条记录。我怎样才能执行这个查询?
任何简化的想法。
I am using foxpro 5.0
I am having more than 3000 records to run a query.For example my query is
delete from mytable.dbf where fieldname not in (1,2,3,......3909)
It wont execute.Because foxpro allow only 24 records in the In clause.How can I execute this query?
Any simplification ideas.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
以下代码演示了如何根据一个表中的记录删除另一表中的记录。
The following code demonstrates how you can delete records in one table based on the records in another table.
您可以尝试研究 SYS(3055) 函数,它允许您调整 FOR 和 WHERE 子句中允许的复杂性。
不过,我会获取您想要保留在临时游标中的字段名值列表,例如“_keep”,然后执行以下操作:
You could try investigating the SYS(3055) function which allows you to adjust the complexity allowed in FOR and WHERE clauses.
However I would get the list of fieldname values that you want to keep into a temporary cursor, say called '_keep' and then do: