title: Insert into mysql
body: <p>I want to pass parameters to a batch file which will then inserted into mysql database.</p>
  
  <pre><code>lunch.bat name surname
  
  echo off
  mysql -uusername -ppassword -e "set @1:=name; set @2:=surname; source insert.sql;"
  </code></pre>
  
  <p>In insert.sql</p>
  
  <pre><code>insert into mytable(namecol,surnamecol) values(@1,@2);
  </code></pre>
  
  <p>Someone can help me in writing both scripts?</p>
  
  <p>Thanks</p>