DBI/SQL question
- From: sigzero@xxxxxxxxx (Robert Hicks)
- Date: Wed, 15 Mar 2006 10:18:01 -0500
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 );
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: Robert Hicks
- Re: DBI/SQL question
- Prev by Date: RE: FW: suggestion for sftp process
- Next by Date: Re: hash defining
- Previous by thread: Re: Sending back an http 200 response
- Next by thread: Re: DBI/SQL question
- Index(es):
Relevant Pages
|