- 论坛徽章:
- 0
|
上图
$ db2 list tables for schema cardpro|grep test
test_tab CARDPRO T 2007-04-09-17.47.57.666060
test_tab1 CARDPRO T 2007-04-09-17.50.11.400194
test_table CARDPRO T 2007-04-09-17.34.37.145763
$ db2 "select tabname,tabschema from syscat.tables where tabname='test_tab'"
TABNAME TABSCHEMA
-------------------------------------------------------------------------------------------------------------------------------- -----------
---------------------------------------------------------------------------------------------------------------------
test_tab CARDPRO
1 record(s) selected.
$ db2 drop table cardpro.test_tab
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0204N "CARDPRO.TEST_TAB" is an undefined name. SQLSTATE=42704
$ db2 "select * from cardpro.test_tab"
SQL0204N "CARDPRO.TEST_TAB" is an undefined name. SQLSTATE=42704
db2 默认会把小写字符转成大写字符
但是在syscat.tables里面此表名为小写,所以无法匹配
不知道有什么办法可以去除么 |
|