...beside escaping your string proper. I bet it must beAlso have a look at bindValue or QString::arg() which makes your code better readable.Qt Code:
mQuery.exec("LOAD DATA INFILE '"+fileName+"' INTO TABLE table1 FIELDS TERMINATED BY ' ' LINES TERMINATED BY '\\r\\n'")To copy to clipboard, switch view to plain text mode
Bookmarks