Any mySQL/SQL experts around?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tempest
    Too lazy to set a custom title
    • May 2004
    • 10217

    #1

    Any mySQL/SQL experts around?

    Is there an "easy" way to grab all records where the number of spaces (or some other character, or even a strnig) in a specific field is > then a set number? eg: you you want to count the "words" in each sentence that's been stored in a field.
  • teksonline
    So Fucking Banned
    • Jan 2005
    • 2904

    #2
    maybe, might be easier to use php/mysql


    using strlen, substr, substr_count etc

    Comment

    • milambur
      Mainstream since 2010
      • Jan 2003
      • 1327

      #3
      Originally posted by Tempest
      Is there an "easy" way to grab all records where the number of spaces (or some other character, or even a strnig) in a specific field is > then a set number? eg: you you want to count the "words" in each sentence that's been stored in a field.
      Take a look here:
      http://dev.mysql.com/doc/refman/4.1/...functions.html

      You should be able to solve it with regular expressions.
      Alea iacta est

      Comment

      Working...