Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Append from?
Message
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Titre:
Divers
Thread ID:
00305422
Message ID:
00305904
Vues:
26
>>Using the basic ADODB construct how would I do an append from another table? I am trying to avoid a large loop for each record with a loop for each field. Alternatly if I could add a whole row at a time that would be very cool.
>>
>> The meat is this: I have a smaller table that needs to be appended to a master table. What would be my best bet?
>
>If both tables have the same structure, use this:
>insert into sysentity
>SELECT *
>FROM ZZsysEntity
>
>If tables structure are not the same, then you can use this:
>insert into sysentity(F1, F2, F3)
>SELECT (F4, F5, F6)
>FROM ZZsysEntity

Thanks. It looks a little like three unrelated commands to the fox user in me, but, the C++ programmer says if it works roll with it. :} Again, my thanks.
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform