select from one table, insert into another table oracle sql query

前端 未结 4 762
礼貌的吻别
礼貌的吻别 2020-12-29 06:00

I am trying to select data from one table
and insert the data into another table

    SELECT ticker FROM tickerdb;

Using OracleSql I am

4条回答
  •  半阙折子戏
    2020-12-29 06:47

    try this query below:

    Insert into tab1 (tab1.column1,tab1.column2) 
    select tab2.column1, 'hard coded  value' 
    from tab2 
    where tab2.column='value';
    

提交回复
热议问题