如何在 FoxPro 中修改或运行此查询?
我有这样的 SQL 查询
select * from tablename where Fieldname not in (10005347797,1006009285)
我的目标是删除不在该 id 中的剩余记录。因此,在此之前我想查看该表中将要删除的所有记录。
如果您知道如何删除该记录,也可以给我删除命令。
I have the SQL query like this
select * from tablename where Fieldname not in (10005347797,1006009285)
My aim is to delete remaining records not in that id.So before that I want to see all the records in that table those are going to be deleted.
If you know how to delete that records you can give me delete command also.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
以下代码演示了如何使用SQL命令删除记录。
The following code demonstrates how to use a SQL command to delete records.
用于为您获取结果的 FoxPro 命令:
注意:根据我使用 FoxPro 的经验,这些命令应该适用于任何版本的 FoxPro。然而它没有经过测试。
FoxPro commands to get the result for you:
Note: Based on my experience with FoxPro, these commands should work with any version of FoxPro. However it is not tested.
一个问题:
10005347797和1006009285的类型是'string'?
如果是这样,请尝试这个('alltrim'以防万一):
else
endif
A question:
type of 10005347797 and 1006009285 are 'string'?
if so, try this ('alltrim' just in case):
else
endif