xo::db::DB-postgresql instproc dml (public)
<instance of xo::db::DB-postgresql> dml [ -dbn dbn ] \ [ -bind bind ] [ -prepare prepare ] qn sql
Defined in /var/www/openacs/packages/xotcl-core/tcl/05-db-procs.tcl
Execute a data modification statement.
- Switches:
- -dbn (optional)
- Database name, or empty for the default.
- -bind (optional)
- Query bind values.
- -prepare (optional)
- Optional prepared-statement argument types.
- Parameters:
- qn (required)
- Query name.
- sql (required)
- SQL statement.
- Returns:
- The number of affected rows.
- Testcases:
- xotcl_core_tutorial_2, xotcl_core_tutorial_4, test_cr_items, xowiki_test_cases, slot_interactions
![[i]](/resources/acs-subsite/ZoomIn16.gif)