SQL Basics - Select Where > 그누5튜닝

그누5튜닝

SQL Basics - Select Where 정보

SQL Basics - Select Where

본문

제일 기본되는 Select와 

 

SELECT * FROM customer.customer;
select FirstName, LastName FROM customer.customer;

select FirstName, LastName, Age FROM customer.customer where FirstName = 'Mike';

 

2가지 조합 and, or등으로..

select FirstName, LastName, Age 
FROM customer.customer 
where FirstName = 'Mike' 
and LastName = 'Schmidt1';

 

Like로 검색  %는 0 이상의 모든 캐릭터.  _ 는 하나의 캐릭터..

 

select FirstName, LastName, Age 
FROM customer.customer 
where FirstName = 'Mike' 
and LastName like 'Schmidt%';

 

링크를 클릭해야 그 시간부터 플레이 됩니다.

https://youtu.be/9Pzj7Aj25lw?list=PLD20298E653A970F8&t=1046

공감
0
  • 복사

댓글 0개

© SIRSOFT
현재 페이지 제일 처음으로