Quick join of lines (numbers) with comma

Many times I execute query A and end up with a list of 10 or 20 numbers in the results.  I copy/paste this list into a WHERE IN () clause of query B.  When I do this, each time I must add a comma after each line.  Is there a way to quickly join the results with a comma?

评论操作 固定链接


At least to use find/replace with regexp.

Thank you.