a=# create table t (name varchar(10));
CREATE TABLE
Time: 50.938 ms
a=#
a=# insert into t values (';');
INSERT 0 1
Time: 4.312 ms
a=# insert into t values (';'),(';;');
INSERT 0 2
Time: 3.730 ms
a=# insert into t values (';'),(';;'),(';;;');
INSERT 0 3
Time: 1.129 ms
a=# insert into t values (';'),(';;'),(';;;;;;;;;;');
INSERT 0 3
Time: 2.059 ms
a=# insert into t values (';'),(';;'),(';;;;;;;;;;;');
错误: 对于可变字符类型来说,值太长了(10)
Time: 0.264 ms
Oracle不支持此种写法:
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
PL/SQL Release 11.2.0.4.0 - Production
CORE 11.2.0.4.0 Production
TNS for Linux: Version 11.2.0.4.0 - Production
NLSRTL Version 11.2.0.4.0 - Production
SQL> insert into testa values (1);
1 row created.
SQL> insert into testa values (1),(2);
insert into testa values (1),(2)
*
ERROR at line 1:
ORA-00933: SQL command not properly ended
plsqldeveloper中也不支持:
但DB2支持此种写法:
在toad中链接db2也支持此写法: