首页 / 网络编程 / 正文

查找oracle数据库表中是否存在系统关键字的方法

2023-09-20 21:27:45

今天在工程中遇到“ORA-01747: user.table.column, table.column 或列说明无效”的报错情况,查了一下是由于数据库列名起的不好引起的,名字用到了数据库的关键字。

select *from v$reserved_wordswhere keywordin(select COLUMN_NAMEfrom all_tab_columnswhere table_name = '表名大写' and owner='用户名大写');

ID可以忽略

想用智盟CMS 为企业建一个能获客的官网?扫码咨询。

智盟CMS企业微信二维码