title: Replace text in a specific character number
body: <p>I have a table with a column (text) with values like '601.001.010'. 11 characters.</p>
  <p>I want to replace characters 9,10,11 as follows. 010 to 001, 020 to 002, 030 to 003 and so on.</p>
  <p>I have tried this SQL statement:</p>
  <pre class="lang-sql prettyprint-override"><code>update &quot;table&quot; 
  set code = replace (right(code, 3) '010', '001')
  </code></pre>