最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

sql - ODBC: ERROR [HY000] importing data to Excel - Stack Overflow

matteradmin7PV0评论

I have an ODBC database I can connect to and navigate to correct folder and table. Table has over 200,000 entries and I only want to pull in 258 of them. The column in the table is called WWID and it is format of 12345678. I am wanting to write a SQL query on my connection to save having it pull all the data into the Power Query in Excel. When I try to use a SQL statement it gives me the error:

ODBC: ERROR [HY000] ERROR: Syntax error: Exception parsing query near 'WorkerSnapshotPublic' java.sql.SQLException: Syntax error: Exception parsing query near 'WorkerSnapshotPublic'; Error while executing the query

Table name is correct, column name is correct. Perhaps Data type is incorrect but not sure how to tell.

I gave it the SQL Command:

SELECT *
FROM WorkerSnapshotPublic
WHERE WWID IN ('12345678');

I wanted to be able to have it read in a list of 258 WWID from a CSV but want to start with how to get the command to work.

Post a comment

comment list (0)

  1. No comments so far