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 :confused:
thanks
Gopu
Printable View
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 :confused:
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.
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
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!
Quote:
Originally Posted by rajeshgoswami
really - think about your answers and then see what what ou have said is stupid
there is a little mistake, this is DDL, need not commit command.Quote:
Originally Posted by hrishy
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