bkiahg has asked for the wisdom of the Perl Monks concerning the following question:
Here is the table information from a "DESCRIBE rates";my $query_submitted = "SELECT * FROM rates WHERE weight = 2"; # Hangs my $query_submitted = "SELECT * FROM rates WHERE zone2 = '4.67'"; # Wo +rks fine
Field | Type | Null | Key | Default | Extra |
weight | int(11) | NO | PRI | auto_increment | |
zone2 | varchar(45) | NO |
Any help is appreciated. As always, thank you in advance.my $weight = 4; my $query_submitted = 'SELECT * FROM rates WHERE weight = ?'; # This executes the query my $sth_submitted = $dbh->prepare($query_submitted) or die "Error prep +are"; $sth_submitted->execute($weight) or die 'Error';
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: MySQL 5.1.11 Select Query
by pc88mxer (Vicar) on Aug 05, 2008 at 15:36 UTC | |
by bkiahg (Pilgrim) on Aug 05, 2008 at 15:41 UTC | |
Re: MySQL 5.1.11 Select Query
by Illuminatus (Curate) on Aug 05, 2008 at 16:46 UTC | |
by bkiahg (Pilgrim) on Aug 05, 2008 at 17:17 UTC | |
Re: MySQL 5.1.11 Select Query
by perrin (Chancellor) on Aug 05, 2008 at 16:49 UTC | |
by bkiahg (Pilgrim) on Aug 05, 2008 at 17:35 UTC | |
by perrin (Chancellor) on Aug 05, 2008 at 18:32 UTC | |
by bkiahg (Pilgrim) on Aug 05, 2008 at 19:11 UTC | |
by perrin (Chancellor) on Aug 05, 2008 at 19:20 UTC | |
| |
Re: MySQL 5.1.11 Select Query
by jethro (Monsignor) on Aug 05, 2008 at 16:35 UTC | |
by bkiahg (Pilgrim) on Aug 05, 2008 at 17:53 UTC |