Database
$sth = $dbh->prepare("SELECT cola, colb, colc, cold FROM foo ".
"WHERE colb<>cola AND colc=22");
Note on variable naming:
| $sth | statement handle |
| $dbh | one database handle (usually the master) |
| $dbs | set of database handles [master(, slave)] |
| $dbr | read-only slave db handle (used for selects) |
| $dbarg | argument that can take a $dbh/r or $dbs |
| $remote | hashref of remote user, based on cookies. will contain 'userid' and 'user' params, unless faster get_remote_noauth was used, in which case only 'user' will be present. |
| $u | a user 'object' (a hashref) |