DBI/SQL question
- From: "Robert Hicks" <sigzero@xxxxxxxxx>
- Date: 15 Mar 2006 07:29:57 -0800
I have a large array of numbers that I need to use in an update SQL
statement using a "like" clause.
my @nums = ( 123 456 789 ); # it is much larger
foreach my $num (@nums) {
$dbh->do(q{update table_name set item_desc1 = item_desc2 where
equip like # I draw a blank here
}
I am not sure how to use the $num in a like since a like is '%' and it
I do '%$num' that won't be interpolated.
Help...
Robert
.
- Follow-Ups:
- Re: DBI/SQL question
- From: J. Gleixner
- Re: DBI/SQL question
- From: Dr.Ruud
- Re: DBI/SQL question
- From: A. Sinan Unur
- Re: DBI/SQL question
- From: Paul Lalli
- Re: DBI/SQL question
- From: Robert Hicks
- Re: DBI/SQL question
- Prev by Date: Re: Net::FTP and IBM TSO :-(
- Next by Date: Re: DBI/SQL question
- Previous by thread: FAQ 3.6 How do I profile my Perl programs?
- Next by thread: Re: DBI/SQL question
- Index(es):
Relevant Pages
|