Boldra has asked for the wisdom of the Perl Monks concerning the following question:
The select and update methods would generate and execute the SQL. I was expecting to find a more direct generation of SQL, eg:&my_db_connection->update( table_name => $table_name, keys => &my_db_connection->select( table_name => $table_name, return_field => 'userID', select_field => 'userName', value => $username), update_field => 'userAddress', update_value => $new_address);
The only advantages of this approach (IMHO) are:$sql = "UPDATE users SET userAddress='$new_address' WHERE userName='$ +username'"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Architecture of a Database system
by arhuman (Vicar) on Apr 04, 2001 at 17:25 UTC | |
|
Re: Architecture of a Database system
by Masem (Monsignor) on Apr 04, 2001 at 17:16 UTC | |
by dws (Chancellor) on Apr 04, 2001 at 21:08 UTC | |
|
Re: Architecture of a Database system
by voyager (Friar) on Apr 04, 2001 at 17:33 UTC | |
|
Re: Architecture of a Database system
by grinder (Bishop) on Apr 04, 2001 at 17:54 UTC | |
by princepawn (Parson) on Apr 05, 2001 at 00:02 UTC | |
by grinder (Bishop) on Apr 05, 2001 at 11:45 UTC | |
|
Re: Architecture of a Database system
by suaveant (Parson) on Apr 04, 2001 at 17:27 UTC |