Created
September 10, 2023 14:21
-
-
Save BytesCrafter/e413d39fced8e3272aba7d9e106eabf7 to your computer and use it in GitHub Desktop.
MYSQL USEFULL BUT DANGEROUS COMMANDS
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 all email address in a users table to a specific domain name | |
UPDATE users | |
SET email = CONCAT(LEFT(email, INSTR(email, '@')), 'example.com') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just Starting a compilation