Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditional append from
Message
 
À
03/02/2015 15:13:28
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:
01614838
Vues:
42
>>>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
>>
>
>I'm a little mechanical in my approach but I would query the cursor into a "final" cursor for the append, thus eliminating the items I did not want.

?
What do you mean?
First to SELECT and the APPEND FROM?
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
Répondre
Fil
Voir

Click here to load this message in the networking platform