Subject | Re: [firebird-support] SQL Server Migration to Firebird |
---|---|
Author | Ann W. Harrison |
Post date | 2010-07-01T21:36:34Z |
sqlsvr wrote:
SELECT statement, as the standard requires. If you want an arbitrary
single valued FROM source, you can use the system table RDB$DATABASE.
SELECT 'a' AS column1 from RDB$DATABASE;
the API interface sometimes called DSQL. The capabilities
you're looking for are part of interpretive tools, of which
there are several. FlameRobin is one - it's a separate open
source project. The query interpreter that ships with
Firebird is ISQL which does not have variables. There's
an older and nearly unsupported tool called QLI which does
include variables. It doesn't use the "@" prefix. And, of
course, the last statement would be
SELECT somevariable FROM RDB$DATABASE;
Good luck,
Ann
> In SQL Server, you can do this in the Query Analazyer (which executes a query and displays the results):As far as I know, all Firebird tools require a FROM clause in every
> SELECT 'a' AS column1;
SELECT statement, as the standard requires. If you want an arbitrary
single valued FROM source, you can use the system table RDB$DATABASE.
SELECT 'a' AS column1 from RDB$DATABASE;
>Technically, Firebird SQL is the language available through
> You can also do this:
> DECLARE @somevariable INT;
> SET @somevariable = 1;
> SELECT @somevariable;
>
> Can someone translate this to Firebird SQL?
the API interface sometimes called DSQL. The capabilities
you're looking for are part of interpretive tools, of which
there are several. FlameRobin is one - it's a separate open
source project. The query interpreter that ships with
Firebird is ISQL which does not have variables. There's
an older and nearly unsupported tool called QLI which does
include variables. It doesn't use the "@" prefix. And, of
course, the last statement would be
SELECT somevariable FROM RDB$DATABASE;
Good luck,
Ann