Link | row_count |
Author | Jason Huck |
Category | Database |
Version | 8.x |
License | Public Domain |
Posted | 02 Aug 2007 |
Updated | 02 Aug 2007 |
More by this author... |
Returns the number of affected rows for the last insert, delete, or update statement against a MySQL datasource. Must be used within an [inline].
inline( ... ); 'There were ' + row_count + ' records updated.'; /inline;
Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.
define_tag( 'row_count', -priority='replace', -description=' Returns the number of affected rows for the last insert, delete, or update statement against a MySQL datasource. ' ); // default to zero local('out') = 0; if( lasso_datasourceismysql(database_name) && ( action_statement >> 'insert' || action_statement >> 'update' || action_statement >> 'delete' ) ); protect; inline( -sql='SELECT ROW_COUNT() AS changed'); #out = integer(field('changed')); /inline; /protect; /if; return(#out); /define_tag;
No comments
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft