sql - Delete data from postgres database -
i utilize postgres jdbc , delete info database without dropping tables!! insert info in database using
<jdbc:initialize-database data-source="datasource"> <jdbc:script location="classpath:meta-inf/test.sql"/> </jdbc:initialize-database> the problem got key duplicated exception, have delete info before running code idea?
add truncate your_table; tables @ origin of test.sql file.
sql postgresql jdbc
No comments:
Post a Comment