I have table called “location” with a field “area”. This field can contain various type of values. Example:
“1.0/5.”, “32.22/29.”,
“.0/2.”, “6.4/15.”, “nothing” etc
I want create a regular expression that selectes only the the first number from this field and adds 1 to it.
So using the example above, the update will result in:
“2”, “33”, “1”, “7”.
Hopefully that makes sense.
Try this:
.. unless ofcourse you want to do it straight in the MySQL query