DML Statements :
String query1 = "update EMP_DT set EMP_NAME='"EMP_NAME"',EMP_DEPT='"EMP_DEPT"' where EMP_ID='"EMP_ID"' ";
DMLStatement dml1 = new DMLStatement(query1);
dml1.execute();
Reference:
https://wiki.cordys.com/display/ucforum/Query+In+Java+Code
String query1 = "update EMP_DT set EMP_NAME='"EMP_NAME"',EMP_DEPT='"EMP_DEPT"' where EMP_ID='"EMP_ID"' ";
DMLStatement dml1 = new DMLStatement(query1);
dml1.execute();
Reference:
https://wiki.cordys.com/display/ucforum/Query+In+Java+Code
There will be an error if one writes the query ending with ";" the error will be xqyQueryException. So try to avoid that.
ReplyDelete