![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Thank you all. Very helpful. the CREATE TABLE syntax is more an Oracle thing. Right? |
|
I was wondering if the SELECT INTO INSERT INTO syntax is also accepted by Oracle or it needs adjustments ? |
|
-Pam |
#6
| |||
| |||
|
|
"pamela fluente" <pamelaflue... (AT) libero (DOT) it> wrote in message news:1172172321.965386.210210 (AT) h3g2000cwc (DOT) googlegroups.com... Thank you all. Very helpful. the CREATE TABLE syntax is more an Oracle thing. Right? Yes, using CREATE TABLE to create a table from another table works in Oracle but not in SQL Server. In Oracle you can write: CREATE TABLE NewTable AS SELECT OrderID, CustomerID FROM Source1 The equivalent in SQL Server is: SELECT OrderID, CustomerID INTO NewTable FROM Source1 I was wondering if the SELECT INTO INSERT INTO syntax is also accepted by Oracle or it needs adjustments ? There is SELECT INTO in Oracle but has different meaning. The INTO clause is used to direct the result of the SELECT to a variable list or a record. INSERT INTO in its basic form works the same way in Oracle and SQL Server. Oracle has more variations of the syntax. -Pam HTH, Plamen Ratchevhttp://www.SQLStudio.com |
![]() |
| Thread Tools | |
| Display Modes | |
| |