Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How do I do a Select Into
On 16 Apr 1997 20:44:38 GMT, "Shawn Francis" <shawn.francis_at_kp.org> wrote:
>Very simple question. How do select data out of one table and put the
>results into another table.
>
>Example:
>
>Select MedicalRecordNumber, count(*) into newTableName
>From existingTableName
>
>According to the manuals I have I can only do this into variables. Is this
>true?
>
there is:
create table newTableName
as
select MedicalRecordNumber, count(*) cnt
from existingTableName
/
Or if the table exists
insert into table
select ...
/
Thomas Kyte
tkyte_at_us.oracle.com
Oracle Government
Bethesda MD
http://govt.us.oracle.com/ -- downloadable utilities
![]() |
![]() |