This is a fairly odd question... I believe it would involve some sort of regex with MySQL.
Say I have a query on a table as such below:
>select description from foo;
----------------------------------
| description |
----------------------------------
Kitten, 3 in., Lightsaber
Mouse, 5.5 in., Luke Skywalker
Dog, 9.000 in., Death Star
Is there a way to update foo such that the "inches" (in.) portions are to three decimal places.
i.e. After the update:
>select description from foo;
-----------------------------------
| description |
-----------------------------------
Kitten, 3.000 in., Lightsaber
Mouse, 5.500 in., Luke Skywalker
Dog, 9.000 in., Death Star
Any advice/guidance is greatly appreciated! Thanks.