title: How to write a mysql query to replace white spaces followed by comma in a field
body: <p>I have a field called dates which contains data like this <code>"27 Mar 2013,        28 Mar 2013,        29 Mar 2013"</code></p>
  
  <p>Now i need to write query to change the data to below format.</p>
  
  <p><code>"27 Mar 2013,28 Mar 2013,29 Mar 2013"</code>.</p>
  
  <p>How to write a query to replace white spaces follows by comma in MySql.</p>