![]() |
select user records by secondary group
I want to select all user records that are members of secondary group X. Is there any fancy SQL that would allow me to directly select these records? Or should I select all user records and parse through them with the is_member_of() function?
|
http://dev.mysql.com/doc/mysql/en/String_functions.html
Functions which may be of use to are FIND_IN_SET and SUBSTR. This works (only tested under MySQL 4.0.21): [sql] SELECT * FROM user WHERE FIND_IN_SET(2, membergroupids) [/sql] |
FIND_IN_SET seems to work. thx
|
All times are GMT. The time now is 06:13 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|