Created
September 25, 2016 13:31
-
-
Save cereal-s/195be31f7a7dc25b9429a01995a1dae0 to your computer and use it in GitHub Desktop.
SQLite strstr()
This file contains 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
-- return the domain name | |
SELECT SUBSTR('[email protected]' | |
, INSTR('[email protected]', '@') + 1 | |
, LENGTH('[email protected]') - INSTR('[email protected]', '@')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment