... 2.1.4 利用查询结果建表(Create Table As Select (CTAS)) 2.1.5 复制已有表结构(Create Table Like) 2.1.6 分桶排序的表(Bucketed Sorted Tables) ...
基于1个网页-相关网页
But from our data model's perspective, there is no unique table we can use to create our foreign key constraint, like the one between TB_RIGHT and TB_PERSON.
但是从我们数据模型的角度来看,我们没有一个惟一的表可以用来创建我们的外键约束,就像TB_RIGHT和TB_PERSON之间那样。
If you create a CGTT table using the like clause (create CGTT like a regular table), the statement will be successful, but the CGTT will not inherit the constraints of the original table.
如果您使用like语句创建cgtt表(像普通表一样创建CGTT),则该语句会执行成功,但CGTT不会继承原始表的约束。
Creating an empty table with the same structure as an existing table can be done by specifying the LIKE option of the CREATE table command (Listing 4).
通过在CREATE TABLE命令中指定LIKE选项,创建一个与现有表结构相同的空表(清单4)。
应用推荐