I'm having a query that append a string value from multiple rows and insert the result in a new table.
I would like to limit the String length that is inserted.
Question
What is the best way to achieve that :
Should I use SUBSTR or SUBSTRB or is there a better way ?
varchar2(10)orchar(10).substrorsubstrbdepends on whether that size is restricted in characters or bytes (i.e.varchar2(10 char)orvarchar2(10 byte)).SUBSTRthe way to go ? (at the cost of building a string for nothing (above the limit) ?