적절한 테이블 이름 고르기
PostgreSQL의 모든 명명된 객체와 마찬가지로, 테이블 이름에도 앞 강의에서 살펴본 몇 가지 제약이 있어요. 새 테이블을 만들 때 문제를 피하려면 허용되지 않는 명명 규칙을 알아두어야 해요.
이 연습은 강의의 일부입니다
PostgreSQL 데이터베이스 만들기
연습 안내
- 아래에서 잘못된 테이블 이름이 포함된
CREATE TABLE명령을 삭제하세요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
-- Delete me and command below if this table name is invalid
CREATE TABLE 2for1 ();
-- Delete me and command below if this table name is invalid
CREATE TABLE customers ();
-- Delete me and command below if this table name is invalid
CREATE TABLE orders ();
-- Delete me and command below if this table name is invalid
CREATE TABLE service_rendered_by_other_provider ();