Date: 07/31/02
- Next message: Hutchins, Richard: "RE: [PHP-DB] adding a space in mysql"
- Previous message: Brian Graham: "[PHP-DB] Benefits of assigning query to variable"
- Next in thread: Dan Koken: "[PHP-DB] Re: adding a space in mysql"
- Reply: Dan Koken: "[PHP-DB] Re: adding a space in mysql"
- Maybe reply: ron wallace: "[PHP-DB] adding a space in mysql"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
How can I add a space to the end of a varchar string
in mysql? I can't seem to do it directly, and I tried
str_pad and other things, but no luck so far. The db
doesnt hold the value of the space...its getting
trimmed somewhere(?)
The reason I want to do this is so I can search for
exact matches on one word strings without stemming:
...WHERE name LIKE '$var %'.
If the user types 'Wash' I don't want any matches for
'Washington', 'Washing', etc.
Thank You All
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Hutchins, Richard: "RE: [PHP-DB] adding a space in mysql"
- Previous message: Brian Graham: "[PHP-DB] Benefits of assigning query to variable"
- Next in thread: Dan Koken: "[PHP-DB] Re: adding a space in mysql"
- Reply: Dan Koken: "[PHP-DB] Re: adding a space in mysql"
- Maybe reply: ron wallace: "[PHP-DB] adding a space in mysql"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

