Firebird 2.1 - Simple SELECT

做~自己de王妃 提交于 2019-12-01 23:29:27

Firebird (like many other DBMS) requires a FROM clause. In Oracle you'd use the DUAL table, in Firebird you can use RDB$DATABASE

SELECT 1 as foo
FROM RDB$DATABASE;

As RDB$DATABASE always contains exactly one row, this works the same way as Oracle's DUAL table (or IBM's SYSDUMMY)

It incorrect syntax for firebird. Right SELECT 1 as foo from RDB$DATABASE. RDB$DATABASE it system table for it RDBMS. You can read about FIREBIRD system tables here.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!