Table creation
H all,
i am creating tables using dblinks.
create table x as select * from x@dblink;
i like to know if there any way to create the first 100 or 1000 rows from the table and then the next thousand rows
thanks
Gopu
Thanks/Gopu
Hi
No sql is atomic its all or none.
You need to use pl/sql for that use bulk collect and fetch 1000 rows at a time and commit
regards
Hrishy
That's why I miss SQL Copy command that much.
Pablo (Paul) Berzukov
Author of
Understanding Database Administration available at amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Hi Pavb
oops sorry you are right sqlplus copy command can do what you are trying to do gopu_g and no pl/sql coding required.
regards
Hrishy
Hi,
pavb i will try wiht the suggestion you given, if again some problems occur means we can go with pl/sql
thanks
pavb and Hrishy
Thanks/Gopu
You can create only few rows or as per your need by this comand. create table x as select * from x@dblink where rownum<=100;
enjoy!
Originally Posted by
rajeshgoswami
You can create only few rows or as per your need by this comand. create table x as select * from x@dblink where rownum<=100;
enjoy!
really - think about your answers and then see what what ou have said is stupid
Originally Posted by
hrishy
Hi
No sql is atomic its all or none.
You need to use pl/sql for that use bulk collect and fetch 1000 rows at a time and commit
regards
Hrishy
there is a little mistake, this is DDL, need not commit command.
hehe
whats DDL? - there is no DDl in what hrishy said
hehe
"create table x as select * from x@dblink;"
this is a ddl.
the 2nd thread which hrishy said is the reply to the 1st thread
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width
Bookmarks