Class::Phrasebook Class::Phrasebook 15 of 23 : [PREV] [NEXT]

The Module Extension

The UPDATE Statement

Now, if we call the get method as the following:

$statement = $sql->get("UPDATE_T_ACCOUNT",
{ description => "administrator of manuals",
id => 77 });

We will get the statement:

update t_account set
description = 'administrator of manuals'
where id = 77

"Set" lines that contained undefined placeholders in the original update statement were removed.


© 2003 Barbie barbie@missbarbell.co.uk Home http://birmingham.pm.org/