Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete - Sql
Message
From
06/10/2000 09:42:45
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Delete - Sql
Miscellaneous
Thread ID:
00425878
Message ID:
00425878
Views:
42
Hi all!

Here my problem :
I want to delete every record of a table 'login' that the key mach the key of the table 'emp' filter, so I've done that :
DELETE ALL FOR pers_no IN ( SELECT emp.pers_no ;
                            FROM emp ;
                            WHERE emp.out_dt < DATETIME( ) ) IN login
But when I compile, VFP give me the error :
DELETE ALL FOR pers_no IN ( SELECT emp.pers_no  FROM emp  WHERE emp.out_dt < DATETIME( ) ) IN login
Error in line 93: Function name is missing ).
I don't see where I miss a )...
What am I doing wrong?

I tought that maybe the 'IN' in the condition of the DELETE is not permitted, but if so, how can I doing this?
Merci!!!

--Séb
Next
Reply
Map
View

Click here to load this message in the networking platform