[MySQL] - [1] - [ DB, table ์์ฑ, insert, use, show, select ]
drop database if exists bookdb; create database bookDB; show databases; use bookDB; show tables; create table booktbl( id int auto_increment primary key, -- id | intํ | ์๋ ์ค๋ฆ์ฐจ์ ์ถ๋ ฅ -- primary๋ table๋น ํ๋์ด๋ฉฐ, row์ ๋ํฏ๊ฐ์ด๋ค. bookname varchar(20) not null, -- not null : ๊ณต๋ฐฑ ๋ถ๊ฐ. publisher varchar(20) not null, price int not null ); insert into booktbl values(null, 'book100', 'com100', 100); -- id์นธ์ null์ ์ผ..
2022. 1. 22.