Last active
November 17, 2015 09:19
-
-
Save mrroot5/cc895a08a90c2875b53c to your computer and use it in GitHub Desktop.
Obtiene un número de palabras de un campo. Filtra un campo por número de palabras.
From: https://www.daniweb.com/web-development/php/threads/131471/displaying-a-limited-number-of-words-from-mysql#post636034
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 SUBSTRING_INDEX(description," ",3) FROM table [WHERE condition]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment