在SQL Server 2000里,可以使用保留字.如A表中有: level字段,在SQL Server2000中,会自动变为'[level]',但不影响使用.不过到了Oracle中,就会报SQL语法错误的异常了.org.hibernate.exception.SQLGrammarException: could not execute query或者org.apache.jasper.JasperException: could not execute query
因此建议字段名,应尽量避免使用保留字.