我想知道是否有任何选项可以将多行输出到单行中。
例如,常规select * from tbl_name
将给出表中所有可用记录的列表。
firstname lastname
---------- ------------
Lepanto Fernando
Lourdes Brillianto
Gerald Siluvai
首选输出
名字将有 -> Lepanto###Lourdes###Gerald
姓氏将有 -> Fernando###Brillianto###Siluvai
我们可以做一些连接来实现上述目标吗?