java.sql.SQLSyntaxErrorException: ORA-00904: "column": 标识符无效

首先查看无效的列是不是orcale关键字 ,

如果不是 , 查看与column字段相关的所有内容 , 引用是否正确

尽量不要用select 中的字段别名当做 where 或者 order by 等的条件

应该使用表的别名或者表名作为标识 , 避免歧义  

 

select  user_id as id ,name as na

from table tb

where tb.name = 'XXX'

order by tb.user_id desc

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2021-11-01
  • 2021-05-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-26
  • 2022-12-23
  • 2021-10-11
  • 2021-11-06
  • 2022-12-23
相关资源
相似解决方案