분류 전체보기

·Java
코드 구현package ch03;import java.sql.Connection;import java.sql.DriverManager;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;public class UpdateExample { public static void main(String[] args) { String url; String user; String password; // Connection 객체를 얻어서 insert 구문을 직접 만들어 보세요. url = "jdbc:mysql://localhost:3306/mydb2?s..
·Java
코드 연습package ch02;import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;public class MySQLJdbcExample { public static void main(String[] args) { // 준비물 String url = "jdbc:mysql://localhost:3306/mydb2?serverTimezone=Asia/Seoul"; String user = "root"; // 상용서비스에서 절대 루트 계정 사용 금지 String password = "asd123"; ..
·설치메뉴얼
MySQL Connector 다운로드 주소 MySQL :: Download Connector/JMySQL Connector/J is the official JDBC driver for MySQL. MySQL Connector/J 8.0 and higher is compatible with all MySQL versions starting with MySQL 5.7. Additionally, MySQL Connector/J 8.0 and higher supports the new X DevAPI for development with MySQL Serdev.mysql.com  Oracle JDBC 드라이버 다운로드 주소 JDBC and UCP Downloads pageOracle JDBC Driver Imp..
·Java
예시 코드 Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/mydatabase", "root", "password"); 예시 코드// 1. MySQL JDBC 드라이버 로드Driver myDriver = new com.mysql.cj.jdbc.Driver();DriverManager.registerDriver(myDriver);-----------------------------------------------------// 2. Oracle JDBC 드라이버 로드Driver myDriver = new oracle.jdbc.OracleDriver();DriverManager.registerDriver(myD..
신슨형의 정상화
'분류 전체보기' 카테고리의 글 목록 (45 Page)