Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
Bruno Baguette
Le Wed, 30 Jun 2004 23:04:10 -0400, Marc Collin a écrit :
je cherche à afficher seulement les x premiers caractère d'un champ texte d'une bd mysql
Bonjour,
Sous mysql, il y a la fonction SUBSTRING(str FROM pos FOR len)
Extrait de la doc :
The forms without a len argument return a substring from string str starting at position pos. The forms with a len argument return a substring len characters long from string str, starting at position pos. The forms that use FROM are standard SQL syntax.
-- ---------------------------------------- Bruno Baguette -
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL
Le Wed, 30 Jun 2004 23:04:10 -0400, Marc Collin a écrit :
je cherche à afficher seulement les x premiers caractère d'un champ
texte d'une bd mysql
Bonjour,
Sous mysql, il y a la fonction SUBSTRING(str FROM pos FOR len)
Extrait de la doc :
The forms without a len argument return a substring from string str
starting at position pos. The forms with a len argument return a substring
len characters long from string str, starting at position pos. The forms
that use FROM are standard SQL syntax.
Le Wed, 30 Jun 2004 23:04:10 -0400, Marc Collin a écrit :
je cherche à afficher seulement les x premiers caractère d'un champ texte d'une bd mysql
Bonjour,
Sous mysql, il y a la fonction SUBSTRING(str FROM pos FOR len)
Extrait de la doc :
The forms without a len argument return a substring from string str starting at position pos. The forms with a len argument return a substring len characters long from string str, starting at position pos. The forms that use FROM are standard SQL syntax.