SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Aug 2004
    Location
    Earth
    Posts
    724
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Limit mysql column to bring back one of each word listed

    Hi,

    In mysql database I have a column that has:

    test
    test
    test
    testing
    testing

    I am trying to build a menu, but need to get only one result for each word the same when looping through the records?

    Thanks

  2. #2
    SitePoint Guru
    Join Date
    Aug 2004
    Location
    Earth
    Posts
    724
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks like GROUP BY is the answer..


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •