Error when executing statement

Thomas Daniels July 12, 2016

mysql> SELECT cu.lower_user_name, cg.lower_group_name
-> from cwd_user cu
-> join cwd_membership cm on cu.id=cm.child_id
-> join cwd_group cg on cm.parent_id=cg.id
-> WHERE cu.directory_id=163842 AND cg.directory_id=28868609
-> into outfile '/tmp/outfile.cvs' fields terminated by ',' enclosed by '' lines terminated by '\n';
ERROR 1054 (42S22): Unknown column 'cm.child_id' in 'on clause'

1 answer

0 votes
Davin Studer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 13, 2016

That is because child_id is not a valid column in that table. There is child_user_id and child_group_id.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events