5

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.

1 Answer 1

11

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.