bigup401 has asked for the wisdom of the Perl Monks concerning the following question:
i want to search info from db by age,name and country. but i get blank output
if ($input) { my $search = $DBH->prepare("SELECT * FROM tble WHERE CONCAT(NAME, ', ' +, AGE, ', ', COUNTRY) LIKE ?"); $search->execute($input); my $row; while (my $row = $search->fetchrow()) { print "$row\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: retrieve info
by huck (Prior) on Sep 11, 2018 at 23:32 UTC | |
by bigup401 (Pilgrim) on Sep 12, 2018 at 13:48 UTC | |
by marto (Cardinal) on Sep 12, 2018 at 13:56 UTC | |
|
Re: retrieve info
by Anonymous Monk on Sep 11, 2018 at 23:17 UTC |