learingperl01
MIS
Hello wondering if someone could please point me in the right direction.
I am trying to figure out if/how to use the ? variable twice in the same query.
example
example
Looks like the problem is that I am using the ? variable twice which the script doesn't like. How do you use the ? variable twice in the same query, or what is another way to do this?
Thanks for the help in advance.
I am trying to figure out if/how to use the ? variable twice in the same query.
example
example
Code:
my @lines = read_file('/tmp/test.txt');
chomp(@lines);
my $sql = q|select * from table_name where srcaddr = ? or dstaddr = ?;
Looks like the problem is that I am using the ? variable twice which the script doesn't like. How do you use the ? variable twice in the same query, or what is another way to do this?
Thanks for the help in advance.