The AS keyword
Coddy SQL 여정의 기초 섹션에 포함된 레슨 — 72개 중 21번째.
명확하고 설명적인 열 이름은 데이터를 의미 있는 방식으로 제시하는 데 필수적입니다. 열 이름이 나쁜 테이블을 보여주면 청중이 당신이 무슨 말을 하는지 이해하기 어려울 것입니다.
열 이름을 변경하려면 AS 키워드를 사용할 수 있습니다
SELECT col1 AS firstColumn, col2 AS secondColumn, ...
FROM table1챌린지
쉬움사용 가능한 테이블과 컬럼:
<strong>kitchen_items</strong>:<strong>cutlery</strong>,<strong>amount</strong>
amount가 3개 미만인 모든 주방 용품을 가져오세요. cutlery 컬럼 이름을 silverware로 변경하세요.
치트 시트
열 이름을 변경하려면 AS 키워드를 사용하세요:
SELECT col1 AS firstColumn, col2 AS secondColumn
FROM table1직접 해보기
이 레슨에는 짧은 퀴즈가 포함되어 있습니다. 레슨을 시작해 문제를 풀고 진행 상황을 기록하세요.
기초의 모든 레슨
4More Keywords
The IN keywordThe BETWEEN keywordThe LIKE keywordThe AS keywordRecap - Cellphone Models2Conditions
Conditions BasicsThe AND keywordThe OR keywordThe NOT keywordMultiple Conditions CombinedParenthesisBooleans5Arithmetic Operations
Mathematical OperatorsMathematical ColumnsThe Modulo OperationThe ROUND() Function3Specific Return Format
Null valuesSort Results Part 1Sort Results Part 2Recap - Cyber Security FirmLimit number of recordsRecap - Vehicle Factory6Intro Challenges
Recap - Parliamentary ElectionRecap - Police Criminal ArrestRecap - Bar Beverage ContainerRecap - Engineer new columns