jjuya

연산자between and 연산자and의 축양형 연산자select * from tbl_students where age between 10 and 30;=> tbl_students 테이블에 age가 10 이상 30 이하인 학생 정보가 출력select * from tbl_students where age not between 10 and 30;=> tbl_students 테이블에 age가 10이상 30 이하가 아닌 학생 정보가 출력not은 부정의 의미! in 연산자or에 대한 축약형 연산자select * from tbl_students where age = 22 or age = 33;=> tbl_students 테이블의 age가 22 혹은 33인 전체 데이터 조회in축약형 사용seletct * from t..
WHERE원하는 조건에 해당하는 데이터를 조회하기 위해 사용select ~ from ~ where ~ SELECT 원하는 Column(열)만 추출WHERE 원하는 Row(열)만 추출formulaselect  조회하고자 하는 데이터(컬럼명) from 테이블명 where 원하는 컬럼 = 조건 select * from  tbl_students where age = 22=> tbl_students 테이블의 age가 22인 전체 테이블 정보 조회 문자열의 조회 할때는 대·소문자를 구분해야 한다select * from  tbl_students where name= '홍길동'
SELECTselect는 데이터를 조회 from 은 어떤 테이블을 조할지formulaselect 조회하고자 하는 데이터(컬럼명) from 테이블명desc tb_table => 테이블의 구조를 조회하는 방법tbl_students의 모든데이터 조회!tbl_students의 테이블 구조 조회 컬럼명 selete 할 경우select * from tb_table=> tb_table (테이블)의 모든 데이터(column)를 조회select col1 from tb_table=>  tb_table (테이블)의 col1(컬럼명) column 만 선택해서 조회select col1, col2 from tb_table=>  tb_table (테이블)의 col1, col2 (컬럼명) column 만 선택해서 조회 표현식을 se..
jjuya 개발 기록
'SQL/SQL 이론' 카테고리의 글 목록💕