Hi!
I know this must be written down somewhere, but I cannot find the right keywords to solve this mystery.
Every month I get a members.csv which looks sort of like this:
id;name;donation;birthday
12;Alfred;56;12.12.1912
678;Beth;12,45;1.1.2001
There are no quotes used to define “12,45” as a cell value
I want to link this csv to my odb (HSQLDB), so that I can access it easily via calc.
What I do not want to do is manually readjust the csv every month, so that it fits my import settings.
The script I run via the SQL-Menu:
DROP TABLE "members";
CREATE TEXT TABLE "members" (
"id" INTEGER PRIMARY KEY,
"name" VARCHAR(50),
"donation" DOUBLE,
"birthday" VARCHAR(10)
);
SET TABLE "members" SOURCE "members.csv;ignore_first=true;encoding=UTF-8BOM;fs=\semi" DESC;
SET TABLE "KG_MITGLIEDER" READONLY TRUE;
works nicely until it his the comma at 12,45.
Question: What property am I missing to tell the SET TABLE command to simply ignore commas and keep proceeding with the import using the semicolon “;” uniquely as a field seperator?
Thank you so much!