What do you want to save?
Add Code snippet
New code examples
-
Java 2022-03-17 03:45:03
jsp search query
<%@page import="java.sql.DriverManager"%> <%@page import="java.sql.ResultSet"%> <%@page import="java.sql.Statement"%> <%@page import="java.sql.Connection"%> <% String id = request.ge... Add solution -
Other 2022-02-14 02:00:27
Apache drill plugin
{ "type": "jdbc", "driver": "com.mysql.jdbc.Driver", "url": "jdbc:mysql://localhost:3306", "username": "root", "password": "mypassword", "... Add solution -
Java 2021-11-14 08:08:20
WAP in Java to insert a record from a form to table.
import java.io.DataInputStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.Statement; public class ExPrepareStatement { public static void main(String[] args) { try{ Class.forName(&... Add solution -
Other 2021-11-11 09:18:20
hibernate xml template
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:p="http://www.springframework.org... Add solution -
Java 2021-10-29 03:26:06
java sql connection example
import java.sql.*; class MySQLConnection{ public static final String DBNAME = "name_of_the_database"; // Like "testDB" /** JDBC driver name and database URL */ public static final String JDBC_DRIVER = "com.mysql.jdbc.Driver&qu... Add solution -
Java 2021-10-19 03:10:04
hibernate.cfg.xml
<?xml version = "1.0" encoding = "utf-8"?> <!DOCTYPE hibernate-configuration SYSTEM "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> ... Add solution -
Java 2021-10-09 04:10:06
jdbc create a delete statement
//STEP 1. Import required packages import java.sql.*; public class JDBCExample { // JDBC driver name and database URL static final String JDBC_DRIVER = "com.mysql.jdbc.Driver"; static final String DB_URL = "jdbc:mysql://localhos... Add solution
Best helpers
Ranking is empty