inserting decimal point

  •  

    USE THIS SIMPLE qUERY???

     

    select REPLACE(substring('V4567',1,3) + SPACE(1) + SUBSTRING('V4567',4,LEN('V4567')),' ','.')

     

     

  • Try it with just this simple TSQL code.

    select SUBSTRING(vfield,1,3) + '.' + SUBSTRING(vfield,4,6) from yourtable

    For example using string '111':

    select SUBSTRING('111',1,3) + '.' + SUBSTRING('111',4,6)

    returns: 111.


    Kindest Regards,

    G. Mohr

Viewing 2 posts - 16 through 16 (of 16 total)

You must be logged in to reply to this topic. Login to reply