Oracle 数据库:使用带限制的 blob 会导致缺少括号错误
Oracle database : Using blob with limits gives missing parenthesis error
参考这个 oracle 网站 http://docs.oracle.com/javadb/10.4.2.1/ref/rrefblob.html,我尝试执行这个查询(来自上述页面)
create table pictures(name varchar(32) not null primary key, pic blob(16M));
我遇到了错误
Error starting at line : 1 in command -
create table pictures(name varchar(32) not null primary key, pic blob(16M))
Error report -
SQL Error: ORA-00907: missing right parenthesis
00907. 00000 - "missing right parenthesis"
*Cause:
*Action:
我无法理解 missing parenthesis
的确切位置。
谁能解释一下?
无需指定 blob 的大小。这就是为什么您会收到缺少括号的错误。
这个语句会起作用。
create table pictures(name varchar(32) not null primary key, pic blob);
神谕doc解释的很清楚。
参考这个 oracle 网站 http://docs.oracle.com/javadb/10.4.2.1/ref/rrefblob.html,我尝试执行这个查询(来自上述页面)
create table pictures(name varchar(32) not null primary key, pic blob(16M));
我遇到了错误
Error starting at line : 1 in command -
create table pictures(name varchar(32) not null primary key, pic blob(16M))
Error report -
SQL Error: ORA-00907: missing right parenthesis
00907. 00000 - "missing right parenthesis"
*Cause:
*Action:
我无法理解 missing parenthesis
的确切位置。
谁能解释一下?
无需指定 blob 的大小。这就是为什么您会收到缺少括号的错误。
这个语句会起作用。
create table pictures(name varchar(32) not null primary key, pic blob);
神谕doc解释的很清楚。