title: MySql Bulk insert
body: <p>I want to insert some 4K rows in the MySql db. I don't want to fire 4k 'insert' queries. Is there any way by which I can fire only one insert query to store those 4k rows in the db.</p>
  
  <p>I searched on internet and everywhere I found that the users are doing bulk insert into the db from a file.</p>
  
  <p>In my case, I have the data in the memory and I don't want to first write that data to a file to do bulk insert. If I do that then I will add delay in the program.</p>