Explain executeUpdate Method
By Ramakrishna on Oct 4, 2008 in Jdbc executeUpdate
ExecuteUpdate() Mehod :- ExecuteUpdate returns and integer indicating the number of rows effected(changes)
When stmt.executeUpdate is called, the JDBC Driver sends the SQL Statement(create—) to the database server. The database server parses and execute the SQL statement
Note: Any Business application uses the Database servers to perform the following 4 operations(getting the data for available in the database is called as Reading the data)
CURD is nothing but
C :- Create (insert—->statement)
U :- Update (update—–>statement)
R :- Read (select——->statement)
D :- Delete (delete——>statement)
for Ex: we can provide the code as shown below to perform create operation
Statement stmt=con.createStatement();
String Vsql=”insert into student values(200,’ram’,22,’ampet’);
stmt.executeUpdate(Vsql);
