• <i id='nT6WS'><tr id='nT6WS'><dt id='nT6WS'><q id='nT6WS'><span id='nT6WS'><b id='nT6WS'><form id='nT6WS'><ins id='nT6WS'></ins><ul id='nT6WS'></ul><sub id='nT6WS'></sub></form><legend id='nT6WS'></legend><bdo id='nT6WS'><pre id='nT6WS'><center id='nT6WS'></center></pre></bdo></b><th id='nT6WS'></th></span></q></dt></tr></i><div id='nT6WS'><tfoot id='nT6WS'></tfoot><dl id='nT6WS'><fieldset id='nT6WS'></fieldset></dl></div>

        <bdo id='nT6WS'></bdo><ul id='nT6WS'></ul>

      <small id='nT6WS'></small><noframes id='nT6WS'>

    1. <tfoot id='nT6WS'></tfoot>
      <legend id='nT6WS'><style id='nT6WS'><dir id='nT6WS'><q id='nT6WS'></q></dir></style></legend>

        从一个表中选择,插入到另一个表中 oracle sql 查询

        select from one table, insert into another table oracle sql query(从一个表中选择,插入到另一个表中 oracle sql 查询)
        <tfoot id='hWvbb'></tfoot>
          <tbody id='hWvbb'></tbody>
        <i id='hWvbb'><tr id='hWvbb'><dt id='hWvbb'><q id='hWvbb'><span id='hWvbb'><b id='hWvbb'><form id='hWvbb'><ins id='hWvbb'></ins><ul id='hWvbb'></ul><sub id='hWvbb'></sub></form><legend id='hWvbb'></legend><bdo id='hWvbb'><pre id='hWvbb'><center id='hWvbb'></center></pre></bdo></b><th id='hWvbb'></th></span></q></dt></tr></i><div id='hWvbb'><tfoot id='hWvbb'></tfoot><dl id='hWvbb'><fieldset id='hWvbb'></fieldset></dl></div>

        • <bdo id='hWvbb'></bdo><ul id='hWvbb'></ul>
        • <legend id='hWvbb'><style id='hWvbb'><dir id='hWvbb'><q id='hWvbb'></q></dir></style></legend>

          <small id='hWvbb'></small><noframes id='hWvbb'>

                • 本文介绍了从一个表中选择,插入到另一个表中 oracle sql 查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试从一张表中选择数据
                  并将数据插入到另一个表中

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

                      SELECT ticker FROM tickerdb;
                  

                  我正在尝试使用 OracleSql
                  从tickerdb表中获取股票代码GOOG",
                  并将 t.ticker 插入到 stockdb 表中.

                  Using OracleSql I am trying to
                  get the ticker symbol "GOOG" from the tickerdb table,
                  and insert the t.ticker into the stockdb table.

                  从tickerdb表中选择-->插入到quotedb表中

                  select from tickerdb table --> insert into quotedb table

                      INSERT INTO quotedb
                      (t.ticker, q.prevclose, q.opn, q.rnge,
                      q.volume, q.marketcap, q.dividend, q.scrapedate)
                      VALUES (?,?,?,?,?,?,?,?,SYSDATE)
                      tickerdb t inner JOIN quotedb q
                      ON t.ticker = q.ticker
                  

                  推荐答案

                  从 oracle 文档中,下面的查询更好地解释了它

                  From the oracle documentation, the below query explains it better

                  INSERT INTO tbl_temp2 (fld_id)
                  SELECT tbl_temp1.fld_order_id
                  FROM tbl_temp1 WHERE tbl_temp1.fld_order_id > 100;
                  

                  您可以阅读此链接

                  您的查询如下

                  //just the concept    
                      INSERT INTO quotedb
                      (COLUMN_NAMES) //seperated by comma
                      SELECT COLUMN_NAMES FROM tickerdb,quotedb WHERE quotedb.ticker = tickerdb.ticker
                  

                  注意:确保插入和选择中的列根据您的要求位于正确的位置

                  Note: Make sure the columns in insert and select are in right position as per your requirement

                  希望这有帮助!

                  这篇关于从一个表中选择,插入到另一个表中 oracle sql 查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  ibtmp1是非压缩的innodb临时表的独立表空间,通过innodb_temp_data_file_path参数指定文件的路径,文件名和大小,默认配置为ibtmp1:12M:autoextend,也就是说在文件系统磁盘足够的情况下,这个文件大小是可以无限增长的。 为了避免ibtmp1文件无止境的暴涨导致
                  SQL query to group by day(按天分组的 SQL 查询)
                  What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)
                  MySQL groupwise MAX() returns unexpected results(MySQL groupwise MAX() 返回意外结果)
                  MySQL SELECT most frequent by group(MySQL SELECT 按组最频繁)
                  Include missing months in Group By query(在 Group By 查询中包含缺失的月份)
                  <tfoot id='fEsXx'></tfoot>

                  <i id='fEsXx'><tr id='fEsXx'><dt id='fEsXx'><q id='fEsXx'><span id='fEsXx'><b id='fEsXx'><form id='fEsXx'><ins id='fEsXx'></ins><ul id='fEsXx'></ul><sub id='fEsXx'></sub></form><legend id='fEsXx'></legend><bdo id='fEsXx'><pre id='fEsXx'><center id='fEsXx'></center></pre></bdo></b><th id='fEsXx'></th></span></q></dt></tr></i><div id='fEsXx'><tfoot id='fEsXx'></tfoot><dl id='fEsXx'><fieldset id='fEsXx'></fieldset></dl></div>

                        <bdo id='fEsXx'></bdo><ul id='fEsXx'></ul>
                        <legend id='fEsXx'><style id='fEsXx'><dir id='fEsXx'><q id='fEsXx'></q></dir></style></legend>

                        1. <small id='fEsXx'></small><noframes id='fEsXx'>

                              <tbody id='fEsXx'></tbody>