MySQL Forums
Forum List  »  PHP

Re: while loop - how to remove last comma
Posted by: rook deis
Date: November 30, 2012 10:33PM

Hello,

You could use group_Concat to concatenate each item in the list to make it a comma separated list..

if you want space after comma then probably you can use a replace function on top of group_concat in the same query (assuming no comma in the manufacturer names)

Options: ReplyQuote


Subject
Written By
Posted
Re: while loop - how to remove last comma
November 30, 2012 10:33PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.