Snazim se vytvorit prikaz na update databaze a nejak na to nemuzu prijit....
static void doneUpdate(String task) throws Exception{
Connection conn = getConnection();
Statement st = conn.createStatement();
st.executeUpdate("UPDATE APP.TASKS.DONE SET TASKS.DONE=1 WHERE TASK='"+task+"'");
st.close();
conn.close();
}
a vyhazuje mi to tuhle chybovou hlasku:
run:
Exception in thread "main" java.sql.SQLSyntaxErrorException: Chyba syntaxe: Encountered "." at line 1, column 17.
at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
at org.apache.derby.client.am.Statement.executeUpdate(Unknown Source)
at gtd.Database.doneUpdate(Database.java:130)
at gtd.testovaci.main(Database.java:143)
Caused by: org.apache.derby.client.am.SqlException: Chyba syntaxe: Encountered "." at line 1, column 17.
at org.apache.derby.client.am.Statement.completeSqlca(Unknown Source)
at org.apache.derby.client.am.Statement.completeExecuteImmediate(Unknown Source)
at org.apache.derby.client.net.NetStatementReply.parseEXCSQLIMMreply(Unknown Source)
at org.apache.derby.client.net.NetStatementReply.readExecuteImmediate(Unknown Source)
at org.apache.derby.client.net.StatementReply.readExecuteImmediate(Unknown Source)
at org.apache.derby.client.net.NetStatement.readExecuteImmediate_(Unknown Source)
at org.apache.derby.client.am.Statement.readExecuteImmediate(Unknown Source)
at org.apache.derby.client.am.Statement.flowExecute(Unknown Source)
at org.apache.derby.client.am.Statement.executeUpdateX(Unknown Source)
... 3 more
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)
Nevíte někdo? Díky.