290570
24.06.05 본문
#자료 조회 데이터베이스 명령어
select 컬럼이름1, 컬럼이름2, .. from 테이블명;
ex) student 테이블에서 학생 이름 조회
select name from student;
ex) student 테이블에서 학생 이름, 영어점수 조회
select name, eng from student;
ex) student 테이블에서 모든 속성 조회
select * from student;
#조건 만족하는 데이터 조회
select 컬럼이름들 from 테이블이름 where 조건식;
ex) 국어점수가 80점 이상인 학생들의 이름, 국어점수 조회
select name, kor, from student where kor >= 80;
ex) 이름이 '독도'인 학생의 국어점수 조회
select kor from student where name = '독도';
ex) 이름이 '자바'인 학생의 모든 속성 조회
select * from student where name = '자바';