What is the max size of VARCHAR2 in PL/SQL and SQL?
问题 I am on Oracle 10g. In a requirement I need to increase the size of a pl/sql VARCHAR2 variable. It is already at 4000 size. I have read that in PL/SQL, VARCHAR2 can be up to 32767 bytes. For SQL the limit is 4000 bytes Can I increase the size of this variable without worrying about the SQL limit? 回答1: See the official documentation (http://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements001.htm#i54330) Variable-length character string having maximum length size bytes or characters.