Working with LO Base 6.4 on a Mac, communicating with a database in SQLite3 through ODBC.
In one of my tables I have a long memo field, which may include text between both single and double quotation marks. In order to pass this through a .csv file and a spreadsheet to get it into this database, some of the single quotes had to be changed to backticks (in order not to be misunderstood by the spreadsheet). I now want to change these back. I have devised a way of scrolling through the table, reading the field as a string and revising it - but have not succeeded in updating the record in the table. I have constructed an UPDATE
SQL statement, but because there are sometimes quotation marks within the string, the execution of the SQL statement gets confused as to where the string begins and ends. I tried enclosing the variable in square brackets instead of double quotes - sSQL.executeUpdate("UPDATE ""myTable"" SET ""ThisField"" = [" & NewString & "] WHERE ... ;")
, but the execution interpreted that as a column-name (not found!); it didn’t like curly brackets {} either.
How can I get round this difficulty?