I have approx. 60,000 lines with the street address in my db that contain a short version of the actual street address, for example.
Svarvarg. 11
Kungsg. 10
Stora g. 19
" g. " is an abbreviation of " gatan " and this creates problems in my application. So what I want to do is select all the lines containing " g. " And replace " g. " With " gatan " For example.
Svarvarg. 11 -> Svarvargatan 11
Kungsg. 10 -> Kungsgatan 10
Stora g. 19 -> Stora gatan 19
Choosing the whole street address that contains " g. " Is simple, but I can't figure out how to make a replacement in SQL. Could you help me with this.
source
share