-
1 minute read
Constraint (์ ์ฝ์กฐ๊ฑด) NOT NULL UNIQUE PRIMARY KEY FOREIGN KEY DEFAULT Null / Not Null Null = N / Not Null = NN Null์ ๊ณต๋ฐฑ์ด ์๋ โ๋ฏธ์
๋ ฅ ์ํโ๋ฅผ ์๋ฏธ Not Null ์ค์ CREATE TABLE table_name ( column_name data_type NOT NULL ); null๊ฐ ์
๋ ฅ ๋ฐฉ๋ฒ ex) CREATE TABLE people( num int, name...
Continue reading...
-
Less than 1 minute read
MySQL ์ค์น ๐ฌ MySQL ์ค์น & ์ค์น ํ์ธํ๊ธฐ ๐ฌ MySQL Workbench ์ค์นํ๊ธฐ MySQL ์ฟผ๋ฆฌ(Query)๋ฌธ ๋ฐ์ดํฐ๋ฒ ์ด์ค (Database) ๋ฐ์ดํฐ๋ฒ ์ด์ค ์์ฑ CREATE DATABASE database_name; ๋ฐ์ดํฐ๋ฒ ์ด์ค ์ญ์ DROP DATABASE db_name; DROP DATABASE IF EXISTS db_name; ๋ฐ์ดํฐ๋ฒ ์ด์ค ์ฌ์ฉ USE db_name; ๋ฐ์ดํฐ๋ฒ ์ด์ค ๋ฆฌ์คํธ ์กฐํ SHOW DATABASES; ํ์ฌ ์ฌ์ฉ์ค์ธ DB SELECT DATABASE(); ํ
์ด๋ธ (Table) Columns (headers) /...
Continue reading...
-
1 minute read
EL (Expression Language) ํํ์ ๋๋ ์ก์
ํ๊ทธ๋ฅผ ํธ๋ฆฌํ๊ฒ ์ถ๋ ฅํ๊ธฐ ์ํ ์ธ์ด ex) ${ } <%=value %> -> ${value} <jsp:getProperty name="member" property="name" /> -> ${member.name} => ์ฝ๋์ ๊ฐ๋
์ฑ๊ณผ ์ ์ฝ์ฑ โ EL ๋ด์ฅ๊ฐ์ฒด pageScope : page Scope ์ฐธ์กฐ Scope๋? ์น ์ดํ๋ฆฌ์ผ์ด์
์์ ์์ฑ๋ ๋ณ์ ๋๋ ๊ฐ์ฒด๊ฐ ์ ํจํ ๋ฒ์ page scope = page ์์ญ์ ๊ฐ์ฒด...
Continue reading...
-
Less than 1 minute read
ํ๋ฒํผ ๊ตฌํํ๊ธฐ See the Pen Top Button by Jinsol (@losuif) on CodePen. HTML <!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>ScrollTop</title> </head> <body> <div id="wrap"> <h1> ํ๋ฒํผ ๊ตฌํ </h1> <span id="topBtn">TOP</span> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> </body> </html> CSS @charset("UTF-8"); html { scroll-behavior: smooth; }...
Continue reading...
-
2 minute read
๋ฐฉํฅํค๊ฐ ์๋ ์ด๋ฏธ์ง ์ฌ๋ผ์ด๋์ผ ๋ง๋ค๊ธฐ See the Pen ๋ฐฉํฅํค๊ฐ ์๋ ์ด๋ฏธ์ง ์ฌ๋ผ์ด๋ by Jinsol (@losuif) on CodePen. HTML <!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Slide Show</title> <link rel="stylesheet" href="style/style.css"> </head> <body> <div id="wrap"> <h1>์ฌ๋ผ์ด๋์ผ : ๊ฐ๋ก์ด๋๋ฐฉ์</h1> <div id="slideShow"> <!-- ์ด๋ฏธ์ง ํ๊ฐ์ ํฌ๊ธฐ...
Continue reading...