Dear TimTom.
Thank you for your reply. You got it in one. Yes, when I open my CSV file in OpenRefine 3.8.0, it adds several special characters to the first column. Instead of just "A", it adds "ÿþA"
Yes, "NNNNNNNN", no spaces, is one of my columns.
My process is to download the CSV from a website, open it in OpenRefine, strip out a formatting line, then export it, either as a TSV or SQL (I've tried both over time, but yesterday nothing worked.) Then I import it into Sequel Ace, an open source SQL database management tool.
With my workflow, I don't see the CREATE statement, normally handled by the CSV import process in Sequel Ace unless it throws up an error. From an error I'm having right now, here is the CREATE statement:
Error adding new table:
An error occurred while trying to add the new table '20240503' by
CREATE TABLE 20240503 (
A VARCHAR(255),
NNNNNNNN VARCHAR(255),
NAME VARCHAR(255),
STATUS VARCHAR(255),
F VARCHAR(255),
MMMMMMMM VARCHAR(255),
NAME2 VARCHAR(255),
CCCCCCCC VARCHAR(255),
NAME3 VARCHAR(255),
STARTING_DATE VARCHAR(255),
ENDING_DATE VARCHAR(255),
REGISTRATION_DATE VARCHAR(255),
CLOSING_DATE VARCHAR(255)).
MySQL said: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`N' at line 3
If you have any further tips, I'd love to hear them.