List:General Discussion« Previous MessageNext Message »
From:Rick James Date:September 24 2012 5:31pm
Subject:RE: [ask] count items in the SET(value1,value2,value3)
View as plain text  
SET foo (...)
Maybe:
SELECT BIT_COUNT(foo) ...


> -----Original Message-----
> From: Morning Star [mailto:morning.star.crew@stripped]
> Sent: Monday, September 24, 2012 7:02 AM
> To: mysql@stripped
> Subject: [ask] count items in the SET(value1,value2,value3)
> 
> Hi guys,
> i created a table, one of column named categories contain SET as its
> data type. let's say there are N-value in that column.
> i inserted a row to that column which contain only 5 values.
> INSERT INTO table SET categories ='value1, value2, value3, value4,
> value5' ; the question is: how can i count that items ( value1 till
> value5) ?
> 
> Greetings,
> 
> Marco
> 
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:    http://lists.mysql.com/mysql

Thread
[ask] count items in the SET(value1,value2,value3)Morning Star24 Sep
  • RE: [ask] count items in the SET(value1,value2,value3)Rick James24 Sep
    • Re: [ask] count items in the SET(value1,value2,value3)Morning Star25 Sep