How to make use of SQL (Oracle) to count the size of a string? -
i wondering if there function in oracle count number of character size in oracle, i.e. given "burger", sql returns 6.
i.e. select xxx('burger') dual;
you can use length() char / varchar2 , dbms_lob.getlength() clob. both functions count actual characters (not bytes).
see linked documentation if need bytes.
Comments
Post a Comment