给表命名
与 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 ();