Last active
June 20, 2020 22:56
-
-
Save midnite81/5dda7641365e9e2d8039cb0c8cd2088f to your computer and use it in GitHub Desktop.
An example of removing trailing question marks in SQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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