INSERT SELECT statement in Oracle 11G

后端 未结 5 413
醉梦人生
醉梦人生 2020-11-30 13:40

I\'m trying to run a very simple sql statement in Oracle 11g.

 insert into table1 (col1, col2) values (select t1.col1, t2.col2 from oldtable1 t1, oldtable2 t         


        
5条回答
  •  半阙折子戏
    2020-11-30 14:14

    There is an another option to insert data into table ..

    insert into tablename values(&column_name1,&column_name2,&column_name3);
    

    it will open another window for inserting the data value..

提交回复
热议问题