Skip Headers

# Updating Data With a DatabaseQuery

Previous

Next

You can use a `DataModifyQuery` to execute a nonselecting SQL statement (directly or as an `SQLCall`), as Example: Using a DataModifyQuery shows. This is equivalent to `Session` method `executeNonSelectingCall` (see "Using an SQLCall").

Using a DataModifyQuery

    DataModifyQuery query = new DataModifyQuery(new SQLCall("Delete from Employee"));
    session.executeQuery(query);