What is the max size of VARCHAR2 in PL/SQL and SQL?

前端 未结 4 1831
心在旅途
心在旅途 2020-12-30 20:12

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/SQ

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-30 20:47

    Not sure what you meant with "Can I increase the size of this variable without worrying about the SQL limit?". As long you do not try to insert a more than 4000 VARCHAR2 into a VARCHAR2 SQL column there is nothing to worry about.

    Here is the exact reference (this is 11g but true also for 10g)

    http://docs.oracle.com/cd/E11882_01/appdev.112/e17126/datatypes.htm

    VARCHAR2 Maximum Size in PL/SQL: 32,767 bytes Maximum Size in SQL 4,000 bytes

提交回复
热议问题