[
https://issues.apache.org/jira/browse/DERBY-5583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bryan Pendleton resolved DERBY-5583.
------------------------------------
Resolution: Not A Problem
With Derby's CREATE TABLE AS SELECT statement, WITH NO DATA *must* be
specified. Here is the docs on CTAS:
http://db.apache.org/derby/docs/10.8/ref/rrefsqlj24513.html
> CTAS fails and returns erroneous error
> --------------------------------------
>
> Key: DERBY-5583
> URL: https://issues.apache.org/jira/browse/DERBY-5583
> Project: Derby
> Issue Type: Bug
> Components: SQL
> Affects Versions: 10.8.2.2
> Environment: Windows XP, Netbeans 6.9.1, Was experiencing error with
> Derby 10.3.2.1 so upgraded to 10.8.2.2 ( latest ) and getting same error. (
> Given description seems unlikely to be netbeans issue )
> Reporter: Bob Power
>
> create table temp as
> select
> cid
> from
> tcopy;
> gives ;
> Error code -1, SQL state 42X01: Syntax error: Encountered "<EOF>" at line 5,
> column 5.
> running the select statement alone is fine ;
> select
> cid
> from
> tcopy;
> returns the data with no errors
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira