查看表中所有约束条件时,明明有很多约束条件,但查询为空

原因是查看约束的语法为:
select *from user_constraints where table_name='大写表名'
把表名大写就对了

当尝试查看数据库表的约束条件时,遇到查询结果为空的情况。问题出在查询语句上,需要确保在`user_constraints`表中查询时,表名应使用大写。正确的查询语法是:`select * from user_constraints where table_name='大写表名'`。改正这一细节后,就能正确显示所有的约束条件了。
查看表中所有约束条件时,明明有很多约束条件,但查询为空

原因是查看约束的语法为:
select *from user_constraints where table_name='大写表名'
把表名大写就对了

3737
3211
4970

被折叠的 条评论
为什么被折叠?
