Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Howto 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.

like image 925
Stefan Steiger Avatar asked Dec 28 '22 21:12

Stefan Steiger


1 Answers

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
like image 155
Quassnoi Avatar answered Dec 30 '22 09:12

Quassnoi