aalneyperl has asked for the wisdom of the Perl Monks concerning the following question:
3.x Show variables; 4.x Show variables; 5.0 Show global variables 5.1+ Select * from information_schema.global_variables order by 1; sub var { my $sgv = $dbh->prepare("show variables"); $sgv->execute(); while (my ($keyword, $value) = $sgv->fetchrow_array()) { $variables{$keyword} = $value; } $sgv->finish(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Execute statement based on version.
by Corion (Patriarch) on Dec 27, 2007 at 09:36 UTC | |
|
Re: Execute statement based on version.
by Burak (Chaplain) on Dec 27, 2007 at 09:38 UTC | |
|
Re: Execute statement based on version.
by suaveant (Parson) on Dec 27, 2007 at 15:53 UTC |