Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Append from?
Message
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Title:
Miscellaneous
Thread ID:
00305422
Message ID:
00305904
Views:
27
>>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

Previous
Reply
Map
View

Click here to load this message in the networking platform