Find the length of the longest row in a column in oracle

后端 未结 9 1554
野趣味
野趣味 2020-12-16 14:19

Does anybody know if there is a way to find what the length of the longest row in a column in Oracle?

Basically I need to get the length of the longest row and then

9条回答
  •  清歌不尽
    2020-12-16 14:44

    To pad all values in a column to the longest value +1 you can do:

    SELECT RPAD( column_name ,(SELECT MAX(LENGTH( column_name ))+1 FROM table)) FROM table;
    

提交回复
热议问题