<?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 insert error: column not allowed here in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-insert-error-column-not-allowed-here/m-p/4952687#M790780</link>
    <description>Thanks Patti</description>
    <pubDate>Mon, 16 Jan 2006 14:20:07 GMT</pubDate>
    <dc:creator>Ratzie</dc:creator>
    <dc:date>2006-01-16T14:20:07Z</dc:date>
    <item>
      <title>sql insert error: column not allowed here</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-insert-error-column-not-allowed-here/m-p/4952681#M790774</link>
      <description>I am trying to do a load of one column. Into a primary key.&lt;BR /&gt;&lt;BR /&gt;cat TID.txt|while read i&lt;BR /&gt;do echo $i&lt;BR /&gt;sqlplus -s $LOGONID &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;insert into tid_tbl ( TID )&lt;BR /&gt;values($i);&lt;BR /&gt;commit;&lt;BR /&gt;quit&lt;BR /&gt;&lt;BR /&gt;EOF&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;I get column not allowed here.&lt;BR /&gt;For the TID column.</description>
      <pubDate>Mon, 16 Jan 2006 11:54:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-insert-error-column-not-allowed-here/m-p/4952681#M790774</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2006-01-16T11:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: sql insert error: column not allowed here</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-insert-error-column-not-allowed-here/m-p/4952682#M790775</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;try this:&lt;BR /&gt;insert into tid_tbl ("TID")&lt;BR /&gt;values($i);&lt;BR /&gt;&lt;BR /&gt;the error# is:&lt;BR /&gt;ORA-00984:column not allowed here&lt;BR /&gt;&lt;BR /&gt;first try the statements in SQL*Plus or whatever you use.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 16 Jan 2006 12:00:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-insert-error-column-not-allowed-here/m-p/4952682#M790775</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2006-01-16T12:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: sql insert error: column not allowed here</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-insert-error-column-not-allowed-here/m-p/4952683#M790776</link>
      <description>What is the datatype for TID.&lt;BR /&gt;&lt;BR /&gt;If it is character data then you need to enclose the $i in quotes.  Try this.&lt;BR /&gt;&lt;BR /&gt;cat TID.txt|while read i              &lt;BR /&gt;do echo $i                            &lt;BR /&gt;sqlplus -s $LOGONID &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;insert into tid_tbl ( TID )           &lt;BR /&gt;values('$i');                         &lt;BR /&gt;commit;                               &lt;BR /&gt;quit                                  &lt;BR /&gt;                                      &lt;BR /&gt;EOF                                   &lt;BR /&gt;done                                  &lt;BR /&gt;&lt;BR /&gt;Patti</description>
      <pubDate>Mon, 16 Jan 2006 12:02:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-insert-error-column-not-allowed-here/m-p/4952683#M790776</guid>
      <dc:creator>Patti Johnson</dc:creator>
      <dc:date>2006-01-16T12:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: sql insert error: column not allowed here</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-insert-error-column-not-allowed-here/m-p/4952684#M790777</link>
      <description>I have tried both ways and still get same error.&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Jan 2006 12:08:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-insert-error-column-not-allowed-here/m-p/4952684#M790777</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2006-01-16T12:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: sql insert error: column not allowed here</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-insert-error-column-not-allowed-here/m-p/4952685#M790778</link>
      <description>Please post a describe of the table and the input file.&lt;BR /&gt;&lt;BR /&gt;I ran your original script with a varchar2 column and got this error.&lt;BR /&gt;d                                    &lt;BR /&gt;values(d)                            &lt;BR /&gt;       *                             &lt;BR /&gt;ERROR at line 2:                     &lt;BR /&gt;ORA-00984: column not allowed here   &lt;BR /&gt;&lt;BR /&gt;But when I added the '' it worked.&lt;BR /&gt;It treats the $i as a column name without the quote.&lt;BR /&gt;&lt;BR /&gt;Please post the output of your run.&lt;BR /&gt;&lt;BR /&gt;Patti</description>
      <pubDate>Mon, 16 Jan 2006 12:32:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-insert-error-column-not-allowed-here/m-p/4952685#M790778</guid>
      <dc:creator>Patti Johnson</dc:creator>
      <dc:date>2006-01-16T12:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: sql insert error: column not allowed here</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-insert-error-column-not-allowed-here/m-p/4952686#M790779</link>
      <description>You are correct, insert worked correctly with ' '&lt;BR /&gt;I had a typo with the '&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Jan 2006 14:19:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-insert-error-column-not-allowed-here/m-p/4952686#M790779</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2006-01-16T14:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: sql insert error: column not allowed here</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-insert-error-column-not-allowed-here/m-p/4952687#M790780</link>
      <description>Thanks Patti</description>
      <pubDate>Mon, 16 Jan 2006 14:20:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-insert-error-column-not-allowed-here/m-p/4952687#M790780</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2006-01-16T14:20:07Z</dc:date>
    </item>
  </channel>
</rss>

