gpt4 book ai didi

sql - PL/SQL和SQL中VARCHAR2的最大大小是多少?

转载 作者:行者123 更新时间:2023-12-03 08:56:37 25 4
gpt4 key购买 nike

我正在使用Oracle 10g。在需求中,我需要增加pl / sql VARCHAR2变量的大小。它已经是4000尺寸了。我have read

in PL/SQL, VARCHAR2 can be up to 32767 bytes. For SQL the limit is 4000 bytes



是否可以在不担心SQL限制的情况下增加此变量的大小?

最佳答案

请参阅官方文档(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. Maximum size is 4000 bytes or characters, and minimum is 1 byte or 1 character. You must specify size for VARCHAR2. BYTE indicates that the column will have byte length semantics; CHAR indicates that the column will have character semantics.


但是在Oracle Database 12c中可能是32767(okita)

Variable-length character string having maximum length size bytes or characters. You must specify size for VARCHAR2. Minimum size is 1 byte or 1 character. Maximum size is: 32767 bytes or characters if MAX_STRING_SIZE = EXTENDED 4000 bytes or characters if MAX_STRING_SIZE = STANDARD

关于sql - PL/SQL和SQL中VARCHAR2的最大大小是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25237463/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com