Subject | Re: [firebird-support] Re: Firebird record number |
---|---|
Author | Alexandre Benson Smith |
Post date | 2006-11-29T22:52:56Z |
legrand_legrand_63 wrote:
try this:
EXECUTE BLOCK RETURNS (
NUM INTEGER,
NAME CHAR(31))
AS
begin
For
select
row_count,
rdb$relation_name from rdb$relations
into :num, :name
do
begin
suspend;
end
end;
;-)
see you !
--
Alexandre Benson Smith
Development
THOR Software e Comercial Ltda
Santo Andre - Sao Paulo - Brazil
www.thorsoftware.com.br
> Alexandre,...snip...
> I apologize, you are perfectly right
> ROWNUM is an Oracle (and Fyracle) pseudo columns.
> But Firebird implements ROW_COUNT (in PSQL only)
> try this:
>
>
> that would have been great to have it directly in SQL ;o)In FB 2.0 you coud use the new EXECUTE BLOCK construct.
>
> Regards
> PAscal
>
>
>
try this:
EXECUTE BLOCK RETURNS (
NUM INTEGER,
NAME CHAR(31))
AS
begin
For
select
row_count,
rdb$relation_name from rdb$relations
into :num, :name
do
begin
suspend;
end
end;
;-)
see you !
--
Alexandre Benson Smith
Development
THOR Software e Comercial Ltda
Santo Andre - Sao Paulo - Brazil
www.thorsoftware.com.br