Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete - Sql
Message
De
06/10/2000 09:42:45
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Delete - Sql
Divers
Thread ID:
00425878
Message ID:
00425878
Vues:
41
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform