I have several rows in a test database where there are dollar signs preceded by a value. I want UPDATE values ββin the name row of table test1 , however, when I missed the next query, it cleared six data rows in the name column ...
UPDATE test1 SET name=overlay('$' placing '' from 1 for 1);
So, "$ user" became "when I intended this column / row value to become" user ".
How to combine UPDATE and substr substr without deleting any other data?
If the dollar sign is not needed, I want the string to remain untouched.
The dollar sign appears only as the first character when this occurs.
user3750809
source share