Forum Moderators: coopster

Message Too Old, No Replies

Weird Select

         

bobnew32

5:02 am on Jan 5, 2005 (gmt 0)

10+ Year Member



I have a HUGE forum and i'm trying to skim the fat by delete messages in the database less than 300 characters long. Is there any way at all to somehow do a select query? It can be byte size as well, or anything related to this. Thx.

coopster

12:04 pm on Jan 5, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



In MySQL you could use something like the CHAR_LENGTH [dev.mysql.com] string function.
SELECT column FROM table WHERE CHAR_LENGTH(column) < 300;