我正在使用ODBC驱动程序,我正在尝试从数据库中删除一些旧的注释。我收到此错误,我不知道为什么。所有这些表都存在并且可供我访问。
DELETE FROM [Z_TEST_pnt.pnt_comment_record]
WHERE [Z_TEST_pnt.pnt_comment_record].[L2Key] IN
(SELECT POINT.QueueKey FROM [Z_TEST_pnt.pnt_header_record] AS POINT
WHERE (datediff(day, POINT.last_update_time, NOW()) > 7))
我收到错误:
[ODBC EOP驱动程序] [OpenAccess SDK SQL Engine]基表:找不到Z_TEST_pnt.pnt_header_record。[10129]
我感谢任何建议。谢谢。
答案 0 :(得分:0)
DELETE FROM Z_TEST_pnt.pnt_comment_record
WHERE Z_TEST_pnt.pnt_comment_record.[L2Key] IN
(SELECT POINT.QueueKey
FROM Z_TEST_pnt.pnt_header_record AS POINT
WHERE (datediff(day, POINT.last_update_time, NOW()) > 7))