I can use cursors, fetching and loops fine in T-SQL but am failing hopelessly in MySQL 4.1. I want to fetch the email field from a table (stepping through the rows) and concatenate them with a comma after each one to build up a 'mail-to' string. I just get the ambiguous 'check your documentation' error message. I want to do it straight in SQL. Never thought I would be praising Books On Line but it does usually link everything together; whereas alot of MySQl references (inc. at mysql.com) are broken up into their component parts. I'd like a fullsome reference if one exists. Ta for any helpful pointers.