Re: DBI/SQL question
- From: sigzero@xxxxxxxxx (Robert Hicks)
- Date: Wed, 15 Mar 2006 10:54:04 -0500
Robert Hicks wrote:
I have a large array of numbers that I need to use in an update SQL statement using a "like" clause.Never mind...I was mixing my SQL thoughts with my Perl thoughts and coming up blank.
my @nums = ( 123 456 789 );
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 ierpolated.
Help...
Robert
.
- References:
- DBI/SQL question
- From: Robert Hicks
- DBI/SQL question
- Prev by Date: Re: FW: suggestion for sftp process
- Next by Date: Perl fork or system
- Previous by thread: DBI/SQL question
- Next by thread: Perl fork or system
- Index(es):
Relevant Pages
|
|