Dus ik wil in principe dit weergeven (hele rij in EEN kolom):
Ik hou van [soort kolom] cake met [glazuur kolom] en een [fruit kolom].
Het resultaat moet zijn:
Cake_Column
----------------
I like chocolate cake with whipped_cream and a cherry.
I like strawberry cake with vanilla_cream and a lemon_slice.
etc.
etc.
Ik heb een soort TO_CHAR statement nodig dat ([column] "some text" [column]) "new_column_name" doet;
Wat moet ik weten?
Je hebt twee mogelijkheden om tekenreeksen aan elkaar te plakken in Oracle:
CONCAT voorbeeld:
CONCAT(
CONCAT(
CONCAT(
CONCAT(
CONCAT('I like ', t.type_desc_column),
' cake with '),
t.icing_desc_column),
' and a '),
t.fruit_desc_column)
Gebruik ||
voorbeeld:
'I like ' || t.type_desc_column || ' cake with ' || t.icing_desc_column || ' and a ' || t.fruit_desc_column
Heb je de |
operator geprobeerd ?