in reply to Why does the same SQL return different results in the DBI and in SQL*Plus?
The parens are not strictly necessary in this case cause we specified only one column but it's good to get into the habit because without them it's undefined which value you'll get from a multi-column query.my $sql = qq{ SELECT server_id FROM wms_rf_server WHERE server_name = 'splwebdev.unix.us.tld.com' }; my($server_id) = $dbh->selectrow_array($sql);
update 2 duh! I meant selectrow_array not fetchrow_array, thanks runrig
|
|---|