"Paul McNeil" <[EMAIL PROTECTED]> wrote: > How can I combine the elements from many text fields into one text field.
See http://dev.mysql.com/doc/mysql/en/String_functions.html, in particular, you need CONCAT() > I have a table..... > ID(auto inc) eventID data > > ID is unique > eventID is repeated > data represents what happened at this event. > > I would like to return all of the data for a given event ID, sorted by ID. It's like that: SELECT data FROM table WHERE eventID = ? ORDER BY ID; In case you need to concatenate the data in SELECT, here's a clue: SELECT concat(data1,' ',data2,' ',data3) FROM table WHERE eventID = ? ORDER BY ID; Blessings, -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Egor Egorov / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]