PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > mysql.general > How to limit word result by query
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
How to limit word result by query

Réponse
 
LinkBack Outils de la discussion
Vieux 22/08/2007, 06h40   #1 (permalink)
sangprabv@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How to limit word result by query

Hi all,
Is it possible to do query which limiting the result into some words
only? i.e the complete sentence is "I am able to login with the account"
and I just want to view "I am able to login..." Many thanks for any
reply.

Regards,


Willy
--
www.sangprabv.web.id
www.binbit.co.id

  Réponse avec citation
Vieux 22/08/2007, 17h20   #2 (permalink)
mos
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to limit word result by query

At 12:40 AM 8/22/2007, sangprabv@gmail.com wrote:
>Hi all,
>Is it possible to do query which limiting the result into some words
>only? i.e the complete sentence is "I am able to login with the account"
>and I just want to view "I am able to login..." Many thanks for any
>reply.
>
>Regards,
>
>
>Willy


Willy,
If you want to filter the rows to just the words "I am able to
login" and it doesn't have to be in that exact order then use full text
search. http://dev.mysql.com/doc/refman/5.0/...xt-search.html

If you want to look for the exact phrase, then you can use fulltext
search to narrow down the range to a few rows that has those words then add
"and mycol like '%I am able to login%' to the Where clause of the Select
statement. This will make the Like operator much faster.

Mike
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h34.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07145 seconds with 10 queries