I have this as a sql statement. What does it do
IF(`table`.`field1` IS NULL,
'',
GROUP_CONCAT(DISTINCT `table`.`field1` ASC SEPARATOR ',')
) AS `MyNewFields`,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The portion of the SELECT clause you provided will return a zero length string if the
TABLE.field1value is null.If the value is not null, it will use the GROUP_CONCAT function to return a comma delimited string based on the
TABLE.field1values for the group by clause (which we can’t see). Example output: