Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • 13
    this is from mariadb 10 Commented Oct 7, 2014 at 17:02
  • 14
    For the next time I need it, here's syntax for changing a whole column: UPDATE table SET Name = REGEXP_REPLACE(Name, "-2$", "\\1") This removes -2 from abcxyz-2 from a whole column at once. Commented Aug 11, 2016 at 12:01
  • 37
    Changing an entire platform is hardly a realistic solution. Commented Nov 29, 2017 at 22:15
  • 6
    @DavidBaucum MariaDB is a drop-in replacement for MySQL. So it is no "change of platform" but more like choosing a different airline for the same trip Commented Nov 30, 2017 at 6:15
  • 4
    @Benvorth MySQL 8.0 supports it too. Commented Apr 19, 2018 at 16:10