Skip to content

Instantly share code, notes, and snippets.

@midnite81
Last active June 20, 2020 22:56
Show Gist options
  • Save midnite81/5dda7641365e9e2d8039cb0c8cd2088f to your computer and use it in GitHub Desktop.
Save midnite81/5dda7641365e9e2d8039cb0c8cd2088f to your computer and use it in GitHub Desktop.
An example of removing trailing question marks in SQL
UPDATE http_redirects_new
SET redirect_url = trim(trailing '?' FROM redirect_url)
WHERE redirect_url LIKE '%?'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment