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

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -