Created
February 24, 2018 00:33
-
-
Save parzibyte/ef3a9442524afdb471b85da598ec906c to your computer and use it in GitHub Desktop.
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
SELECT | |
IF( | |
INSTR(nombre, ' ') <> 0, | |
MID( | |
nombre, | |
INSTR(nombre, ' ') + 1, #Sumar 1, por el espacio | |
CHAR_LENGTH(nombre) - INSTR(nombre, " ") | |
), | |
nombre | |
) | |
AS segundoNombre | |
FROM tblUsuarios; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment