- 论坛徽章:
- 0
|
连接数据库出错
myuhan兄,我又遇到一点问题了,再次请教一下:怎么我现在连接DB2成功了,可DB2的命令怎么都不能用啊,比如list、create、connect等都不行,可我连接其他数据库mysql和postgre都可以啊,出错提示如下:
SQL>;connect to sample
CLI0118E Invalid SQL syntax. SQLSTATE=37000, SQLSTATE=42000
SQL>;create database test with "test database"
SQL0104N An unexpected token "database" was found following "create ". Expected tokens may include: "TYPE". SQLSTATE=42601
SQL>;list tables
SQL0104N An unexpected token "END-OF-STATEMENT" was found following "list tables". Expected tokens may include: "JOIN <joined_table>;". SQLSTATE=42601
, SQLSTATE=42601
, SQLSTATE=42601 |
|