When I run the following MySQL query using the MySQL connector, in c#, using ExecuteNonQuery(), I get a fatal error:
LOAD DATA LOCAL INFILE '//Path hidden//'
INTO TABLE unvisted_urls
FIELDS ENCLOSED BY '"' TERMINATED BY ','
LINES TERMINATED BY '\r\n'
(@url_hash, url,link_name)
SET url_md5=UNHEX(@url_hash);
The error I get is:
{"Parameter '@url_hash' must be defined."}
If I run the same query in SQLWorkbench56, I don't get any errors and the data is imported correctly.
The problem was introduced after including @url_hash parameter. Have I got the syntax correct or am I missing something.