Subject | Re: [firebird-support] How to use the new ROW_COUNT context variable in FB2? |
---|---|
Author | Martijn Tonies |
Post date | 2006-03-14T20:36:40Z |
Hi,
Triggers) after any DML operation.
eg:
INSERT INTO ...
ChangedRows = ROW_COUNT;
In Firebird 2, ROW_COUNT can also return the number of
rows selected after doing a SELECT (eg: cursor open) in
PSQL.
Martijn Tonies
Database Workbench - development tool for Firebird and more!
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
> How do I use the new ROW_COUNT context variable in FB2?ROW_COUNT is only used in PSQL (Stored Procedures and
> F.e. select row_count from rdb$database gives me:
> ---------------------------
> Dynamic SQL Error
> SQL error code = -104
> Token unknown
> ROW_COUNT on line 1 : select row_count from rdb$database
> ---------------------------
Triggers) after any DML operation.
eg:
INSERT INTO ...
ChangedRows = ROW_COUNT;
In Firebird 2, ROW_COUNT can also return the number of
rows selected after doing a SELECT (eg: cursor open) in
PSQL.
Martijn Tonies
Database Workbench - development tool for Firebird and more!
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com