I have in my Access .mdb
SELECT a * b AS c, c * d AS e
I must translate this clause to Firebird.
Any hint?
I have in my Access .mdb
SELECT a * b AS c, c * d AS e
I must translate this clause to Firebird.
Any hint?
Using SELECT without a FROM clause is non-standard in the SQL language. A few implementations allow it (e.g. Microsoft Access, SQL Server, and MySQL), but others do not.
Firebird is one of those that implement standard SQL, so you must provide a FROM clause, and reference a table with at least one row, or else you get no result.
http://www.firebirdfaq.org/faq30/ says:
You can use the
RDB$DATABASEwhich is a single-row table, and part of each database's metadata:select current_timestamp from RDB$DATABASE;
Any other table with at least one row could be used, but the point is that RDB$DATABASE is sure to be present.