Details
Description
import java.sql.*;
public class cons
{
public static void main(String []args)
throws Exception
}
Exception in thread "main" java.sql.SQLException: Column 'C2' is either not in any
table in the FROM list or appears within a join specification and is outside
the scope of the join specification or appears in a HAVING clause and is not in
the GROUP BY list. If this is a CREATE or ALTER TABLE statement then 'C2' is not
a column in the target table.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExc
eptionFactory.java:45)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:201)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException
(TransactionResourceImpl.java:391)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Tr
ansactionResourceImpl.java:346)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConne
ction.java:2201)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Connection
Child.java:81)
at org.apache.derby.impl.jdbc.EmbedStatement.execute(EmbedStatement.java
:614)
at org.apache.derby.impl.jdbc.EmbedStatement.executeUpdate(EmbedStatemen
t.java:175)
at cons.main(cons.java:25)
Caused by: ERROR 42X04: Column 'C2' is either not in any table in the FROM list
or appears within a join specification and is outside the scope of the join spec
- Show quoted text -
... 2 more
Attachments
Attachments
Issue Links
- is depended upon by
-
DERBY-4248 convert checkConstraint.sql to JUnit
- Closed
- is required by
-
DERBY-4994 10.5 backport effort issue (2011)
- Closed