Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> How to Move data between tables (newbie question)

How to Move data between tables (newbie question)

From: <hedo_ii_rat_at_my-deja.com>
Date: Thu, 24 Jun 1999 14:26:47 GMT
Message-ID: <7ktf6p$78f$1@nnrp1.deja.com>


I have just moved out of Transact SQL on Sybase to PL/SQL on Oracle. I am having a difficult time finding a simple way to copy the data from one table to another. In Sybase, we had a SELECT INTO statement that let us pick which columns from one table we wanted to copy to another. I know SELECT ... INTO ... in Oracle is not the same, however, isn't there an easier way to do this than declaring a hundred variables, selecting into them, then inserting them into another table on a row by row basis with a loop?

And under the wandering thoughts category...

Have you ever wondered... if SQL is supposed non database specific query language, why does every database (Sybase, Oracle, SQLServer, Informix) have it's own version of SQL? Usually only a few simple selects will work on all database. Makes the crossover a very frustrating process!

Thanks for the help,

Dan Nobra
dnobra_at_txpetrochem.com

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't. Received on Thu Jun 24 1999 - 09:26:47 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US