为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。 【DM版本】:DM8 【操作系统】: 【CPU】: 【问题描述】*:
外键的参数: 比入创建外键时,我们需要参考一个非本表的列作为本表的列时可以使用外键。 eg: create table t1(id int,name int parimary key); create table t2(id int,name int references t1.(name));
references主要用于外键创建时使用。若想详细了解references用法,可以参考DM8SQL语言手册详细学习。
外键的参数:
比入创建外键时,我们需要参考一个非本表的列作为本表的列时可以使用外键。
eg:
create table t1(id int,name int parimary key);
create table t2(id int,name int references t1.(name));
references主要用于外键创建时使用。若想详细了解references用法,可以参考DM8SQL语言手册详细学习。