ORA-01747: user.table.column, table.column or column descriptions invalid exception Solution summary

  1. sql stitching errors such as:

update ch_product_wuliu_rule SET set 'prodid' = 85736, 'proname' = test wine a, 'prodno' = yss001, 'produnit' = group, 'oneprod' = 12, 'oneprods' = 41,' oneprodsmoney '= 13,' builddate '= null,' updatedate '= null,' bak '= oh oh WHERE' prodid '= 85736

More than a set of course also be other splicing error checking attention. .

the reason:

When you create a table using the comment as the field name, query statement using the comment field, and comment is ORACEL keyword, so an error at query time.

solve:

1. Create a table using the keyword is not as ORACLE table field names.

2.oracle table keyword query field: the field name in quotes, and strictly case-sensitive.

The first method is recommended resolve, reduce the risk of other problems arise.

Attachment:

ORACLE keyword query statement:

select * from v $ reserved_words;
attention to the establishment table try not to use oracle keywords

3. Or because the second case is only in the framework of time with some of the ROM configuration caused by ill

In the oracle database which has a field named: leave

solution:

After you configure this then hibernate inside leave the field, will be reported to the column name is invalid,

If we use this, you need to use 'enclosed. To solve the problem.

Right way:

   Xml代码
<property name="level" type="java.lang.Integer"> 
             <column name='"level"' precision="1" scale="0" /> 
</property> 
 <property name="level" type="java.lang.Integer">
              <column name='"level"' precision="1" scale="0" />
 </property>
Xml代码 
<property name="level" type="java.lang.Integer"> 
             <column name="level" precision="1" scale="0" /> 
       </property> 
   </class> 
Published 14 original articles · won praise 4 · Views 3939

Guess you like

Origin blog.csdn.net/weixin_44003528/article/details/104919288