我正在使用 Derby 数据库,并且正在尝试更新我的一个表中的每一列。
我正在使用以下语句:
String stmt = "UPDATE APP.DATAVAULT SET DID = ?, DTITLE = ?, DUNAME = ?, DPASS = ?, DSANSWER = ?, DPIN = ?, DURL = ?, DNOTES = ?, PID = ? WHERE DID = ?, DTITLE = ?, DUNAME = ?, DPASS = ?, DSANSWER = ?, DPIN = ?, DURL = ?, DNOTES = ?, PID = ?";
我之前使用以下语句进行了更新:
String stmt = "UPDATE APP.PERSON SET PSNAME = ? WHERE PID = ?";
有没有更简单的方法来更新整个表?如果不是,我在此声明中做错了什么,因为我不断收到以下错误:
Syntax error: Encountered "," at line 1, column 137.