LOAD DATA INFILE with variables

后端 未结 2 1430
滥情空心
滥情空心 2021-01-05 23:30

I was tring to use the LOAD DATA INFILE as a sotred procedure but it seems it cannot be done. Then i tried the usual way of embedding the code to the application itself like

相关标签:
2条回答
  • 2021-01-06 00:04

    I too encountered with this problem, then I created the bulk insert script and run it using C#.net code

    0 讨论(0)
  • 2021-01-06 00:13

    I found the solution myself, it is to set this condition,

          Allow User Variables=true;
    

    in the connection string that will allow to use @parameter values in a query :)

    Thank you for the responses :)

    0 讨论(0)
提交回复
热议问题