Use
executeUpdate
instead of
executeQuery
if no data will be returned (i.e. a non-SELECT
operation).
More Related Contents:
- Is it possible to specify the schema when connecting to postgres with JDBC?
- proper hibernate annotation for byte[]
- How to get a value from the last inserted row? [duplicate]
- how can I create new XML file from existing database in PostgreSQL database using java [closed]
- XML data to PostgreSQL database [closed]
- how to copy data from file to PostgreSQL using JDBC?
- how to execute the code by pressing the button? JSP
- Dynamic Drop down values based on another dropdown [closed]
- How to implement a db listener in Java
- getOutputStream() has already been called for this response
- How do you store Java objects in HttpSession?
- Hibernate saveOrUpdate behavior
- How to get a index value from foreach loop in jstl
- How is driver class located in JDBC4
- Calling a java method in jsp
- Driver JDBC PostgreSQL with Android [duplicate]
- Multiple submit buttons in the same form calling different Servlets
- How to convert HTML to PDF using iText [duplicate]
- Assign JavaScript variable to Java Variable in JSP
- Hibernate, Postgres & Array Type
- Struts2 jQuery plugin java.lang.ClassNotFoundException: org.apache.struts2.views.TagLibrary
- Pass data from Java Servlet to JSP? [duplicate]
- Concatenate strings in JSF/JSP EL and Javascript [duplicate]
- How do I unit test jdbc code in java? [closed]
- Hibernate, spring, JPS & isolation – custom isolation not supported
- How to map a ResultSet with unknown amount of columns to a List and display it in a HTML table?
- Unable to implement Struts 2 token interceptor with hyperlink
- Using hibernate criteria, is there a way to escape special characters?
- Postgres Interval not working with native spring data JPA query
- java.lang.NumberFormatException: For input string in JSP Page