![](/img/trans.png)
[英]SystemVerilog constraint: constrain the read address has been written before
[英]Deleting a constraint that has not been named?
我知道如何删除约束,但如何删除尚未命名的约束呢?
在这里,我使用了没有名称的Check约束。
例:
create table customers
(
id int not null,
name varchar(50) not null,
age int not null check (age>=18),
[Address] char(50),
salary decimal(18,2),
primary key (id)
);
我尝试使用以下命令
alter table customers drop check (age)
但是,它给出了不正确的语法错误。
有没有简单的方法来删除不是名称的约束?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.