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'));
謝謝你的作品 –