如何为同义词添加约束?

问题描述 投票:-1回答:1

我有麻烦了。我确实运行了那段代码。不幸的是,无法工作。

ORA-00942:表或视图不存在。

帮帮我们:)

ALTER SYNONYM tbs_custchnl
ADD CONSTRAINT uniq_four_unique 
UNIQUE(cif, chid, ch_value, langid) DISABLE NOVALIDATE;


this is synonym. So, I can't add constraint to synonym. In other words, I can only add constraint to a table or view.

谢谢大家! :d

oracle ddl
1个回答
0
投票

尝试此查询以查明视图是否存在:

SELECT * FROM all_objects WHERE object_type IN ('TABLE','VIEW') AND object_name = 'tbs_custchnl'
© www.soinside.com 2019 - 2024. All rights reserved.