๐ก VEIW ์์ฑ ๋จ์ผ ํ ์ด๋ธ , ๋ค์ค ํ ์ด๋ธ: ์กฐ์ธ, ์๋ธ์ฟผ๋ฆฌ, ์์ฃผ ์ฌ์ฉ๋๋ Read Only ๋ฑ → ๋น์ฉ ์ ๊ฐ์ ์ํจ #viwe ์์ฑ: create view [Or replace ] view ์ด๋ฆ as select query; create view v_employee as select e.employee_id as '์ฌ์๋ฒํธ', e.first_name as '์ฌ์๋ช ', d.department_name '๋ถ์๋ช ' from employees e, departments d where e.department_id = d.department_id; #๋์ค์ rollback์ ์ํด ์ธํ set autocommit=false; #๋ทฐ ์์ฑ ํ ํ์ธ select * from v_employee; #์ฐธ์กฐ ํ ์ด๋ธ ๋ณ๊ฒฝ..
import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Statement; import java.util.ArrayList; public class JDBCBasic { private static String driver = "com.mysql.cj.jdbc.Driver"; private static String url = "jdbc:mysql://localhost:3306/#DB๋ช "; // jdbc:dbportocol://host:port/database์ด๋ฆ" private static String user = "..
https://dev.mysql.com/downloads/connector/j/8.0.html MySQL :: Download Connector/J MySQL Connector/J 8.0 is highly recommended for use with MySQL Server 8.0, 5.7 and 5.6. Please upgrade to MySQL Connector/J 8.0. dev.mysql.com https://dev-ku.tistory.com/212 [MySQL] Mac์์ ์ดํด๋ฆฝ์ค MySQL ์ฐ๋ํ๊ธฐ (MySQL Connector Java) ์ดํด๋ฆฝ์ค์์ MySQL์ ์ฐ๊ฒฐํ๋ ค๋ฉด MySQL Connector/j ์ ๋ค์ด๋ก๋ ๋ฐ์์ผํ๋ค. MySQL์ ์ฒ์ ์ค์นํ ๋ ๊ฐ์ด ์ค์นํ๋ค๋ฉด ์ค์น๋ ๊ฑด๋๋ฐ์ด๋ ๋..
1๏ธโฃ Mac์ brew ์ค์น https://shanepark.tistory.com/45 Mac ์ brew ์ค์นํ๊ธฐ ๋ฐ warning: /opt/homebrew/bin is not in your path. ์๋ฌ ํด๊ฒฐ Homebrew ๋? Ruby์ Git ์ผ๋ก ๊ฐ๋ฐ๋ MacOS์ฉ ํจํค์ง ๋งค๋์ ์ ๋๋ค. ๊ฐ๋จํ๊ฒ mac์ ๋ญ๊ฐ ์ค์นํ ๋, terminal ์ ๋ช ๋ น์ด ํ ์ค ์ ๋ ฅ ๋ง์ผ๋ก ์ค์นํ๊ฒ๋ ํด์ค๋๋ค.mac์ ์ฌ์ฉํ์ ๋ค๋ฉด, ์ ํ์ด ์๋ ํ์ ์ shanepark.tistory.com 2๏ธโฃ Mysql ์ค์น ๋ฐ ์ญ์ ๋ฐฉ๋ฒ https://github.com/rangyu/TIL/blob/master/mysql/MySQL-%EC%99%84%EC%A0%84-%EC%82%AD%EC%A0%9C%ED%95%98%EA%..