dbTalk Databases Forums  

Access "Make-Table" equivalent?

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Access "Make-Table" equivalent? in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bernie Bernbaum
 
Posts: n/a

Default Access "Make-Table" equivalent? - 02-04-2008 , 04:04 PM






I'm new to PL/SQL and was wondering if there is an equivalent method in Oracle to Access's Make-Table query? For example this statement in Access:

SELECT * INTO PROJNEW FROM PROJECT WHERE PROJNUM > 24999

will create a new table named PROJNEW populated with the filtered records. What I like about Access's way of doing it (besides that it is a single step) is that the new table's columns are defined for me automatically according to what they are in the source table(s).

How can I accomplish that in PL/SQL with as few statements as possible? Thanks

Reply With Quote
  #2  
Old   
Terry Dykstra
 
Posts: n/a

Default Re: Access "Make-Table" equivalent? - 02-04-2008 , 04:44 PM






"Bernie Bernbaum" <somebody (AT) somedomain (DOT) not> wrote

I'm new to PL/SQL and was wondering if there is an equivalent method in Oracle to Access's Make-Table query? For example this statement in Access:

SELECT * INTO PROJNEW FROM PROJECT WHERE PROJNUM > 24999

will create a new table named PROJNEW populated with the filtered records. What I like about Access's way of doing it (besides that it is a single step) is that the new table's columns are defined for me automatically according to what they are in the source table(s).

How can I accomplish that in PL/SQL with as few statements as possible? Thanks


create table PROJNEW
as select * FROM PROJECT WHERE PROJNUM > 24999

--
Terry Dykstra

Reply With Quote
  #3  
Old   
Terry Dykstra
 
Posts: n/a

Default Re: Access "Make-Table" equivalent? - 02-04-2008 , 04:44 PM



"Bernie Bernbaum" <somebody (AT) somedomain (DOT) not> wrote

I'm new to PL/SQL and was wondering if there is an equivalent method in Oracle to Access's Make-Table query? For example this statement in Access:

SELECT * INTO PROJNEW FROM PROJECT WHERE PROJNUM > 24999

will create a new table named PROJNEW populated with the filtered records. What I like about Access's way of doing it (besides that it is a single step) is that the new table's columns are defined for me automatically according to what they are in the source table(s).

How can I accomplish that in PL/SQL with as few statements as possible? Thanks


create table PROJNEW
as select * FROM PROJECT WHERE PROJNUM > 24999

--
Terry Dykstra

Reply With Quote
  #4  
Old   
Terry Dykstra
 
Posts: n/a

Default Re: Access "Make-Table" equivalent? - 02-04-2008 , 04:44 PM



"Bernie Bernbaum" <somebody (AT) somedomain (DOT) not> wrote

I'm new to PL/SQL and was wondering if there is an equivalent method in Oracle to Access's Make-Table query? For example this statement in Access:

SELECT * INTO PROJNEW FROM PROJECT WHERE PROJNUM > 24999

will create a new table named PROJNEW populated with the filtered records. What I like about Access's way of doing it (besides that it is a single step) is that the new table's columns are defined for me automatically according to what they are in the source table(s).

How can I accomplish that in PL/SQL with as few statements as possible? Thanks


create table PROJNEW
as select * FROM PROJECT WHERE PROJNUM > 24999

--
Terry Dykstra

Reply With Quote
  #5  
Old   
Terry Dykstra
 
Posts: n/a

Default Re: Access "Make-Table" equivalent? - 02-04-2008 , 04:44 PM



"Bernie Bernbaum" <somebody (AT) somedomain (DOT) not> wrote

I'm new to PL/SQL and was wondering if there is an equivalent method in Oracle to Access's Make-Table query? For example this statement in Access:

SELECT * INTO PROJNEW FROM PROJECT WHERE PROJNUM > 24999

will create a new table named PROJNEW populated with the filtered records. What I like about Access's way of doing it (besides that it is a single step) is that the new table's columns are defined for me automatically according to what they are in the source table(s).

How can I accomplish that in PL/SQL with as few statements as possible? Thanks


create table PROJNEW
as select * FROM PROJECT WHERE PROJNUM > 24999

--
Terry Dykstra

Reply With Quote
  #6  
Old   
Bernie Bernbaum
 
Posts: n/a

Default Re: Access "Make-Table" equivalent? - 02-04-2008 , 05:13 PM



"Terry Dykstra" <tddykstra (AT) forestoil (DOT) ca> wrote

"Bernie Bernbaum" <somebody (AT) somedomain (DOT) not> wrote

I'm new to PL/SQL and was wondering if there is an equivalent method in Oracle to Access's Make-Table query? For example this statement in Access:

SELECT * INTO PROJNEW FROM PROJECT WHERE PROJNUM > 24999

will create a new table named PROJNEW populated with the filtered records. What I like about Access's way of doing it (besides that it is a single step) is that the new table's columns are defined for me automatically according to what they are in the source table(s).

How can I accomplish that in PL/SQL with as few statements as possible? Thanks


create table PROJNEW
as select * FROM PROJECT WHERE PROJNUM > 24999

--
Terry Dykstra
That did it, thanks Terry!


Reply With Quote
  #7  
Old   
Bernie Bernbaum
 
Posts: n/a

Default Re: Access "Make-Table" equivalent? - 02-04-2008 , 05:13 PM



"Terry Dykstra" <tddykstra (AT) forestoil (DOT) ca> wrote

"Bernie Bernbaum" <somebody (AT) somedomain (DOT) not> wrote

I'm new to PL/SQL and was wondering if there is an equivalent method in Oracle to Access's Make-Table query? For example this statement in Access:

SELECT * INTO PROJNEW FROM PROJECT WHERE PROJNUM > 24999

will create a new table named PROJNEW populated with the filtered records. What I like about Access's way of doing it (besides that it is a single step) is that the new table's columns are defined for me automatically according to what they are in the source table(s).

How can I accomplish that in PL/SQL with as few statements as possible? Thanks


create table PROJNEW
as select * FROM PROJECT WHERE PROJNUM > 24999

--
Terry Dykstra
That did it, thanks Terry!


Reply With Quote
  #8  
Old   
Bernie Bernbaum
 
Posts: n/a

Default Re: Access "Make-Table" equivalent? - 02-04-2008 , 05:13 PM



"Terry Dykstra" <tddykstra (AT) forestoil (DOT) ca> wrote

"Bernie Bernbaum" <somebody (AT) somedomain (DOT) not> wrote

I'm new to PL/SQL and was wondering if there is an equivalent method in Oracle to Access's Make-Table query? For example this statement in Access:

SELECT * INTO PROJNEW FROM PROJECT WHERE PROJNUM > 24999

will create a new table named PROJNEW populated with the filtered records. What I like about Access's way of doing it (besides that it is a single step) is that the new table's columns are defined for me automatically according to what they are in the source table(s).

How can I accomplish that in PL/SQL with as few statements as possible? Thanks


create table PROJNEW
as select * FROM PROJECT WHERE PROJNUM > 24999

--
Terry Dykstra
That did it, thanks Terry!


Reply With Quote
  #9  
Old   
Bernie Bernbaum
 
Posts: n/a

Default Re: Access "Make-Table" equivalent? - 02-04-2008 , 05:13 PM



"Terry Dykstra" <tddykstra (AT) forestoil (DOT) ca> wrote

"Bernie Bernbaum" <somebody (AT) somedomain (DOT) not> wrote

I'm new to PL/SQL and was wondering if there is an equivalent method in Oracle to Access's Make-Table query? For example this statement in Access:

SELECT * INTO PROJNEW FROM PROJECT WHERE PROJNUM > 24999

will create a new table named PROJNEW populated with the filtered records. What I like about Access's way of doing it (besides that it is a single step) is that the new table's columns are defined for me automatically according to what they are in the source table(s).

How can I accomplish that in PL/SQL with as few statements as possible? Thanks


create table PROJNEW
as select * FROM PROJECT WHERE PROJNUM > 24999

--
Terry Dykstra
That did it, thanks Terry!


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.