iuphim
12-29-2008, 07:04 AM
how do you write a query or a macro that automatically copy an oracle table and rename it each week to do a comparison?
thanks
thanks
|
View Full Version : auto a copy of a table iuphim 12-29-2008, 07:04 AM how do you write a query or a macro that automatically copy an oracle table and rename it each week to do a comparison? thanks MSAccessRookie 12-29-2008, 08:40 AM how do you write a query or a macro that automatically copy an oracle table and rename it each week to do a comparison? thanks Copying it is easy Insert Into {YourNewTableName} Select * From {YourOldTableName} { Where {Any Relevant conditions} } Note that the Where Clause is optional and used only if it is required. Comparison would have to be defined by the contents of the data iuphim 12-29-2008, 10:19 AM Copying it is easy [code] Insert Into {YourNewTableName} Select * From {YourOldTableName} Would this delete all the old data? MSAccessRookie 12-29-2008, 10:44 AM No it would not. I presumed that your copy of the table was to be into a NEW table that had no records. You can always Delete From YourNewTableName if you need to remove old records first. iuphim 01-16-2009, 07:17 PM Thank you! |