본문 바로가기
서버/MYSQL

[MYSQL] HACKERRANK - SELECT BY ID

by HDobby 2022. 5. 31.

https://www.hackerrank.com/challenges/select-by-id

 

Select By ID | HackerRank

Query the details of the city with ID 1661.

www.hackerrank.com

Query all columns for a city in CITY with the ID 1661.

The CITY table is described as follows:

 

WHERE문 사용 문제

ID가 1661인 것만 출력

 

코드

더보기
SELECT *
FROM CITY
WHERE ID = 1661;

 

728x90

댓글