How to make a selection based on the ending value
Posted on August 30, 2008, under PHP,
Bookmark it
An SQL command that selects the field’s values that end with a specific string.
SELECT * FROM `your_table_here` WHERE field_table REGEXP 'string_here$';
The symbol $ is telling MySQL to look at the ending of the value.
Do you wish to receive the latest updates as soon as they are posted? Get our RSS Feed or Subscribe to the Newsletter!
- August 30, 2008
- article by Gabriel C.
- Share your thoughts!
Related Posts
-
How to make a selection based on the beginning valueat August 30, 2008
-
How to make an alphabetical searchat August 30, 2008
-
How to add a prefix to a field’s valueat August 30, 2008 with 1 comment
-
PHP: Make an Alphabetical Selection from Elements of an Arrayat October 5, 2008
-
Simple and Easy to Customize XML based CMS: GetSimpleat August 5, 2009 with 4 comments
