Is there a way to use the @ character in a MySQL query from a C# .net program without using parametrised queries?
So for example in the following program
String s =
@"LOAD DATA LOCAL INFILE C:\foo.txt'
INTO TABLE Bar
(idFoo, @baa)
SET
baa = nullif(@baa,'')
";
MySqlCommand myCommand = new MySqlCommand(s, myConnection);
MySqlDataReader myReader = myCommand.ExecuteReader();
@baa is treated like a parameter. ie: as one would use when calling
myCommand.Parameters.Add("@baa", SqlDbType.VarChar );
However in this case I do not want @baa to be a parameter. How do I write this?
@@or\@one of them must escape it. i do not have mysql installed that i can test.