<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: sql script to insert multiple rows in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-script-to-insert-multiple-rows/m-p/3581898#M832799</link>
    <description>I changed one thing and it worked!  &lt;BR /&gt;&lt;BR /&gt;THANKS!</description>
    <pubDate>Wed, 13 Jul 2005 12:54:15 GMT</pubDate>
    <dc:creator>Chassidy Rentz</dc:creator>
    <dc:date>2005-07-13T12:54:15Z</dc:date>
    <item>
      <title>sql script to insert multiple rows</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-script-to-insert-multiple-rows/m-p/3581892#M832793</link>
      <description>I need help writing a SQL script that will insert multiple rows into a table (A) with a 4-column primary key. I need to select data for one of the columns from another table (B).&lt;BR /&gt;&lt;BR /&gt;Table A is called STATUS&lt;BR /&gt;Table B is called I2P_TCN&lt;BR /&gt;&lt;BR /&gt;The primary key columns for STATUS are TCN, ACTION_TYPE, ACTUAL_ACTION_DATE, ACTUAL_ACTION_TIME&lt;BR /&gt;&lt;BR /&gt;I need to select the TCN's to be inserted from the I2P_TCN table where PICKUP_RECORD_NBR = ' &lt;A certain="" number="" target="_blank"&gt; '&lt;/A&gt;</description>
      <pubDate>Wed, 13 Jul 2005 12:31:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-script-to-insert-multiple-rows/m-p/3581892#M832793</guid>
      <dc:creator>Chassidy Rentz</dc:creator>
      <dc:date>2005-07-13T12:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: sql script to insert multiple rows</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-script-to-insert-multiple-rows/m-p/3581893#M832794</link>
      <description>insert into status (&lt;BR /&gt;select tcn,'MYACTION',SYSDATE,SYSDATE from I2P_TCN where pickup_record_NBR = '12');&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jul 2005 12:39:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-script-to-insert-multiple-rows/m-p/3581893#M832794</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2005-07-13T12:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: sql script to insert multiple rows</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-script-to-insert-multiple-rows/m-p/3581894#M832795</link>
      <description>Only the one column, TCN, is found in Table B. I would like to insert my own values for the other 3 columns in table A. All I need from table B are the TCN values.</description>
      <pubDate>Wed, 13 Jul 2005 12:41:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-script-to-insert-multiple-rows/m-p/3581894#M832795</guid>
      <dc:creator>Chassidy Rentz</dc:creator>
      <dc:date>2005-07-13T12:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: sql script to insert multiple rows</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-script-to-insert-multiple-rows/m-p/3581895#M832796</link>
      <description>That's what I gave you.  Notice that the rest is a) a literal 'MYACTION', and the current time (SYSDATE).  Only tcn is coming from the I2P_TCN table.  Feel free to put in what ever value you wish for the other values, much like what I did in my example.&lt;BR /&gt;&lt;BR /&gt;insert into status (&lt;BR /&gt;select tcn,'MYACTION',SYSDATE,SYSDATE from I2P_TCN where pickup_record_NBR = '12');</description>
      <pubDate>Wed, 13 Jul 2005 12:43:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-script-to-insert-multiple-rows/m-p/3581895#M832796</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2005-07-13T12:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: sql script to insert multiple rows</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-script-to-insert-multiple-rows/m-p/3581896#M832797</link>
      <description>For clarification - SYSDATE is a keyword that returns the current date and time into a date field of a statement.</description>
      <pubDate>Wed, 13 Jul 2005 12:45:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-script-to-insert-multiple-rows/m-p/3581896#M832797</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2005-07-13T12:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: sql script to insert multiple rows</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-script-to-insert-multiple-rows/m-p/3581897#M832798</link>
      <description>when I do this I get the following error:&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; insert into status (select tcn, 'CO', '12-JUL-05','16:51' from&lt;BR /&gt;  2  i2p_tcn where pickup_record_nbr like 'M800%');&lt;BR /&gt;insert into status (select tcn, 'CO', '12-JUL-05','16:51' from&lt;BR /&gt;            *&lt;BR /&gt;ERROR at line 1:&lt;BR /&gt;ORA-00947: not enough values</description>
      <pubDate>Wed, 13 Jul 2005 12:48:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-script-to-insert-multiple-rows/m-p/3581897#M832798</guid>
      <dc:creator>Chassidy Rentz</dc:creator>
      <dc:date>2005-07-13T12:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: sql script to insert multiple rows</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-script-to-insert-multiple-rows/m-p/3581898#M832799</link>
      <description>I changed one thing and it worked!  &lt;BR /&gt;&lt;BR /&gt;THANKS!</description>
      <pubDate>Wed, 13 Jul 2005 12:54:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-script-to-insert-multiple-rows/m-p/3581898#M832799</guid>
      <dc:creator>Chassidy Rentz</dc:creator>
      <dc:date>2005-07-13T12:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: sql script to insert multiple rows</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-script-to-insert-multiple-rows/m-p/3581899#M832800</link>
      <description>Great! Glad to hear it all worked.</description>
      <pubDate>Wed, 13 Jul 2005 13:54:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-script-to-insert-multiple-rows/m-p/3581899#M832800</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2005-07-13T13:54:19Z</dc:date>
    </item>
  </channel>
</rss>

