Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditional append from
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01614800
Message ID:
01614803
Vues:
51
>I have Table1 and Cursor1
>
>Both have student_number field.
>
>What I need to do is:
>
>Select table1
>
>Append from cursor1 ( but only student_number that still does not exist in table1)
>
>Moises
INSERT INTO Table1 (field list here);
SELECT field list here;
FROM Cursor1;
LEFT JOIN Table1 ON Table1.Student_Number = Cursor1.Student_Number;
WHERE Table1.Student_Number IS NULL
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform