Hi
I want to Concat Rows of a Column in a Table with One "Select" Order (I mean without use cursor)
Example:
Table1:
Column1
----
'a'
'b'
'c'
Result:
'abc'
Please answer me
thanks alotif you're using MySQL, use the GROUP_CONCAT function
if you're using Sybase ASE, use the LIST function
otherwise, a cursor is actually not a bad idea, because other database systems don't have a similar aggregate functionsqlsql
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment