Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: What's the problem with this statement?


Message #1 by "Manal Rayess" <m_rayess@h...> on Sun, 13 May 2001 12:36:21
Manal,

You have not closed the ' for RES_STATUS

int rowsaffected = stmt.executeUpdate("UPDATE
RESERVATION SET RES_STATUS='" + canceled + "' WHERE
RESERVATION_NUM=" + resno);

Kapil


--- Manal Rayess <m_rayess@h...> wrote:
> it is a query:
> 
> int rowsaffected = stmt.executeUpdate("UPDATE
> RESERVATION SET 
> RES_STATUS='" + canceled + " WHERE RESERVATION_NUM="
> + resno);
> 
> the error message says that: "java.sql.SQLException:
> ORA-01756: quoted 
> string not properly terminated"
> 
> Note: the table and columns names are valid.
>

  Return to Index