Jump to content

Only select a string once from a DB


jaymc

Recommended Posts

I have a table which contains usernames in a field called 'member'

 

I have a query that will query that table and for each username in there it will then do another query

 

However, some usernames may appear 10 times in the table, so they will have the exact same query executed 10 times..

 

How can I structure my very first query on the members table to only return a username once rather than every occurance

 

I've been told possibly group could do this?

 

FYI, there is 200,000 rows of usernames..

Link to comment
https://forums.phpfreaks.com/topic/40096-only-select-a-string-once-from-a-db/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.