Error when creating view. Token unknown - line X, char Y FIRST
You'd get this error message when you try to create a view using FIRST clause in your SELECT. Something like:
CREATE VIEW EV(EMP_NO)
AS
SELECT FIRST 10 EMP_NO
FROM EMPLOYEE;
Support for FIRST in views is added in Firebird 2.0.1. In fact, Firebird 2 treats VIEWs as regular selects, so there are no special restrictions anymore.
Do you find this FAQ incorrect or incomplete? Please e-mail us what
needs to be changed. To ensure quality, each change is checked by our editors (and often tested on live Firebird
databases), before it enters the main FAQ database. If you desire so, the
changes will be credited to your name. To learn more, visit our add content page.
All contents are copyright © 2007-2024 FirebirdFAQ.org unless otherwise stated in the text.