• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: DB2 Error executing sql statement: [SQL0104] Token ) was not valid

Resolved: DB2 Error executing sql statement: [SQL0104] Token ) was not valid

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I am getting the following error from DB2, using custom driver: com.ibm.as400.access.AS400JDBCDriver

Error executing sql statement: [SQL0104] Token ) was not valid. Valid tokens: , FROM INTO.; Caused by: [SQL0104] Token ) was not valid. Valid tokens: , FROM INTO.


Narrowed it down to this bit which works in SQL server, we are a bit stumped as syntax appears fine.

Answer:

You are missing a FROM
But that’s not your only issue…
This is not valid either, are you trying to join the table to itself?
Your embedded selects likely aren’t right either….but without knowing your table structure and seeing some example source data and what you’re wanting as output, I can’t say for sure.

If you have better answer, please add a comment about this, thank you!

db2 db2-400 sql
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Use Svelte Component as Slot

26/03/2023

Resolved: Vaadin 14.9 – Redirect on Session Destroy Event

26/03/2023

Resolved: How to separate multiple answers in one column, for multiple columns, by creating extra columns

26/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.