CoderZone.org

Category: >> mySQL >> Add string to field Bookmark and Share

<< lastnext >>

Snippet Name: Add string to field

Description: Allows you to add a string to end or start of a field to use when comparing or selecting data. The second argument is added to the end of the first.

Comment: (none)

Author: CoderZone
Language: MYSQL
Highlight Mode: MYSQL
Last Modified: March 01st, 2009

SELECT * FROM `table` 
WHERE `field` = CONCAT(field2, '_hello')
 
There haven't been any comments added for this snippet yet. You may add one if you like.  Add a comment 
© coderzone.org | users online: 10