shai1 Posted June 29, 2006 Share Posted June 29, 2006 Is there a way I can do a select that will return the records with a character count less then a specific number?i.e. select * from table where character count of textField<=30 Link to comment https://forums.phpfreaks.com/topic/13231-php-mysql-select-question/ Share on other sites More sharing options...
jworisek Posted June 29, 2006 Share Posted June 29, 2006 try this...[code]SELECT * FROM table_name WHERE LENGTH(column_name)<=30;[/code][!--quoteo(post=389369:date=Jun 29 2006, 01:07 PM:name=shai1)--][div class=\'quotetop\']QUOTE(shai1 @ Jun 29 2006, 01:07 PM) [snapback]389369[/snapback][/div][div class=\'quotemain\'][!--quotec--]Is there a way I can do a select that will return the records with a character count less then a specific number?i.e. select * from table where character count of textField<=30[/quote] Link to comment https://forums.phpfreaks.com/topic/13231-php-mysql-select-question/#findComment-50941 Share on other sites More sharing options...
shai1 Posted June 29, 2006 Author Share Posted June 29, 2006 This is EXACTLY what I was looking for. Thanks so much!I love internet forums! [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /] [!--quoteo(post=389377:date=Jun 29 2006, 01:26 PM:name=jworisek)--][div class=\'quotetop\']QUOTE(jworisek @ Jun 29 2006, 01:26 PM) [snapback]389377[/snapback][/div][div class=\'quotemain\'][!--quotec--]try this...[code]SELECT * FROM table_name WHERE LENGTH(column_name)<=30;[/code][/quote] Link to comment https://forums.phpfreaks.com/topic/13231-php-mysql-select-question/#findComment-50951 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.