'How to select data from non-table in Firebird?
I'm searching for the Firebird equivalent of:
SELECT 'abc' AS abc, 123 AS def, '20110101' AS dt
Whenever I do
SELECT 'whatever' as xxx
I get an error message.
Solution 1:[1]
Firebird, like Oracle, requires a table for a SELECT
.
Usually, RDB$DATABASE
is used for this purpose:
SELECT 'abc' AS abc, 123 AS def, '20110101' AS dt
FROM RDB$DATABASE
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Mark Rotteveel |