Subject | Re: [firebird-support] Re: select .. into new_table from exist_table |
---|---|
Author | Ann W. Harrison |
Post date | 2005-06-01T18:52:30Z |
David Johnson wrote:
Regards,
Ann
>Sorry. The first syntax is not standard SQL, however useful.
>>>>Can I use SQL-92 SELECT * INTO NEW_TABLE FROM EXIST_TABLE ???
>>>
>>Wouldn't the syntax then be
>>
>>INSERT INTO NEW_TABLE SELECT * FROM EXIST_TABLE?
>>
>
> The former syntax is correct for creating a new table that exactly
> matches the result of the select statement (a subtle difference, but
> important if you are using this mechanism to change the type of data
> being stored).
Regards,
Ann