Maybe It is very simple for a person who are using database every day, but I need to write sql query. I've got fields (85500 items) which are in the same design for example '200 00 2334', '200 00 2555' (it's varchar data), it's a code of customers. I need to change all of this fields to for example '200-00 2334', '200-00 2555'. The first space in the field must be replaced into '-' the second space must stay without changes. My database is a PostgreSQL. I need only a query.
Thanks a lot for any help!