[SQL] 데이터 다루기


[SQL] 데이터 다루기

아래를 실습하기 위해서 우선 아래 명령어로 테이블을 생성합니다. create table if not exists highschool_students ( student_no varchar(20) primary key, student_name varchar(100) not null, grade tinyint, class varchar(20), age smallint, enter_date date default (current_date) ); 1. 데이터 입력하기 INSERT INTO 테이블명 VALUES (데이터1, 데이터2, 데이터3, ...); INSERT INTO 테이블명(컬럼명1, 컬럼명2) VALUES (데이터1, 데이터2); insert into highschool_students values ('A0001', '아이유', 1, '보컬반', 17, '2022-03-01'); insert into highschool_students(student_no, student_name)...


#MySQL #SQL

원문링크 : [SQL] 데이터 다루기