2009年01月01日 00:45
sh-3.2$ dbaccess - -
> create database mydb with log;
Database created.
> create table "MyTable" ( col1 integer, col2 varchar(10) );
201: A syntax error has occurred.
Error in line 1
Near character position 24
> ^Csh-3.2$ export DELIMIDENT=y
sh-3.2$ dbaccess mydb -
Database selected.
> create table "MyTable" ( col1 integer, col2 varchar(10) );
Table created.
db2 => create table t ( col1 integer, col2 char(10) );
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0104N An unexpected token ";" was found following "ger, col2 char(10) )".
Expected tokens may include: "END-OF-STATEMENT". SQLSTATE=42601
db2 => create table t ( col1 integer, col2 char(10) )
DB20000I The SQL command completed successfully.