2
我有一个名为posts有一些字段的表,我想限制字段'type'只接受3个字符串'video''photo'和'slideshow' 如何做到这一点?
我试图如何在orientdb中添加约束条件
alter property Post.type add constraint check
(post.type in ('video','photo','slideshow'));
,但它不工作
如何在orientdb添加约束像
alter table post add constraint check(type in ('video','photo','slideshow'));
谢谢你的作品 –