Tuesday, December 17, 2013

Java : DML Statement Usage

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

1 comment:

  1. There will be an error if one writes the query ending with ";" the error will be xqyQueryException. So try to avoid that.

    ReplyDelete