Subject Re: [firebird-support] "CREATE TABLE AS SELECT ... " syntax
Author Helen Borrie
At 07:01 PM 21/05/2004 +0000, you wrote:
>Hi,
>
>Has "CREATE TABLE AS SELECT ... " been implemented in FB 1.5?

No.

>Can it be used with Views "CREATE TABLE AS SELECT * FROM SOMEVIEW" ?

No. You can CREATE VIEW AS SELECT....FROM SOMETABLE, but the reverse is
not true.

>Can it be used with Stored Procedures "CREATE TABLE AS SELECT * FROM
>PAIDINVOICES('20040101','20040530')" ?

No; in any case, stored procedures don't allow any sort of DDL statement,
except through the EXECUTE STATEMENT construct. However, you *can* write a
selectable SP that creates a virtual table from a select statement, of
course (as you seem to have done here, already...)

/heLen