programming.nbk: Home | Index | Next Page: Tcl Mk4Tcl: Iterating over rows | Previous Page: Tcl Mk4Tcl: Defining the view
Deleting Rows
You can delete one or more rows using the "mk::row delete" command. For example:
mk::row delete db.employees!2 # delete a single row mk::row delete db.employees!5 3 # delete three rows starting at index 5
In general, you can't use "mk::row delete" within a "mk::loop" construct. Because "mk::loop" uses the index (row number) to keep track of the current item, and "mk::row delete" removes rows, the loop counter will get thrown off.
Next: Tcl Mk4Tcl: Queries
programming.nbk: Home | Index | Next Page: Tcl Mk4Tcl: Iterating over rows | Previous Page: Tcl Mk4Tcl: Defining the view
Notebook exported on Monday, 7 July 2008, 18:56:06 PM Eastern Daylight Time