How about DELETE FROM [TABLE]
with the name of that table? Or if you want to delete by some criteria like columns values, why not put that directly into your statement as well using a WHERE
clause?
There’s a language for database operations: SQL. Use that where appropriate.
More Related Contents:
- @GeneratedValue polymorphic abstract superclass over MySQL
- how to get list of Databases “Schema” names of MySql using java JDBC
- com.mysql.jdbc.PacketTooBigException
- Create MySQL database from Java
- Embedding mysql in java desktop application
- mysql insert values not updating after some hours?
- Java and MS sql server
- Using env variable in Spring Boot’s application.properties
- What does Statement.setFetchSize(nSize) method really do in SQL Server JDBC driver?
- Storing JSON in database vs. having a new column for each key
- How to implement a db listener in Java
- How can I protect MySQL username and password from decompiling?
- Where do Java and .NET string literals reside?
- Hibernate saveOrUpdate behavior
- How is driver class located in JDBC4
- Filling combobox from database by using hibernate in Java
- Can Hibernate work with MySQL’s “ON DUPLICATE KEY UPDATE” syntax?
- Spring, Hibernate, Blob lazy loading
- No results returned by the Query error in PostgreSQL
- runtime error: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
- Room – Schema export directory is not provided to the annotation processor so we cannot export the schema
- Java + Mysql UTF8 Problem
- com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed
- MySQL connector error “The server time zone value Central European Time” [duplicate]
- The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption
- Save child objects automatically using JPA Hibernate
- Connect To SQL Server With Windows Authentication From A Linux Machine Through JDBC
- Different representation of UUID in Java Hibernate and SQL Server
- Why, In Java arithmetic, overflow or underflow will never throw an Exception?
- When to use JCR (content repository) over other options?