@afoken I am not able to find how to chomp the <*> of before value e the 5th value of array var1 .. please help guys
my $sql2 = 'select name,value from A.Database2 minus select name,value + from A.database1'; my $sth2 = $dbh1->prepare($sql2); $sth2->execute(); while (my @row = $sth2->fetchrow_array) { print join(',', @row), "\n\n"; chomp ; push(@var1,$row[0]); } foreach (@var1) { print "$_\n"; } my $sth3 = $dbh->prepare("select name,value from A.database1 where nam +e in (".join(",",@var1).")") or die "Can't prepare statement: $DBI::e +rrstr"; $sth3->execute(@var1); while (my @row = $sth3->fetchrow_array) { print join(", ", @row), "\n"; DBD::Oracle::db prepare failed: ORA-00904: "APR_IMDG_MODE_ENABLED": in +valid identifier (DBD ERROR: error possibly near <*> indicator at cha +r 144 in 'select name,value from A where name in (a,b,c,d,<*>e)') [fo +r Statement "select name,value from A where name in (a,b,c,d,e)"] at +hello.pl line 102. Uncaught exception from user code: Can't prepare statement: ORA-00904: "APR_IMDG_MODE_ENABLED": i +nvalid identifier (DBD ERROR: error possibly near <*> indicator at ch +ar 144 in 'select name,value from where name in (a,b,c,d,<*>e)') at +hello.pl line 102. at hello.pl line 102

In reply to Re^2: DBD ERROR: error possibly near <*> indicator at char by Anonymous Monk
in thread DBD ERROR: error possibly near <*> indicator at char by suhailck

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.