title: Integer to string conversion function in sql
body: <p>I have a number as follows: 
  13901210
  I want the output to give the following result
  1390/12/10</p>
  
  <p>Input function: a number of bigint
  Output: a string</p>
  
  <p>How do I create this function?</p>