|
原帖由 Germin 于 2009-1-17 21:10 发表 ![]()
为啥微机环境不支持?
IBM不至于实现不了吧。。。
开放DB2和主机DB2在结构上差异很大。
落实到具体的技术层面起码在开放平台V9 里面尚且不支持truncate
db2 => create table test(a integer)
DB20000I The SQL command completed successfully.
db2 =>
db2 =>
db2 =>
db2 => insert into test values(1)
DB20000I The SQL command completed successfully.
db2 => commit
DB20000I The SQL command completed successfully.
db2 =>
db2 =>
db2 =>
db2 => truncate table test
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 "table" was found following "truncate ".
Expected tokens may include: "JOIN <joined_table>". SQLSTATE=42601
db2 =>
db2 =>
db2 =>
db2 =>
db2 => drop table test
DB20000I The SQL command completed successfully.
db2 =>
db2 =>
db2 => quit
DB20000I The QUIT command completed successfully.
$
$
$ db2level
DB21085I Instance "db2inst1" uses "64" bits and DB2 code release "SQL09013"
with level identifier "01040107".
Informational tokens are "DB2 v9.1.0.3", "s070719", "U811590", and Fix Pack
"3".
Product is installed at "/opt/IBM/db2/V9.1". |
|