http://www.2cto.com/database/201307/225809.html 1.数据操作语言(DML:select,delete,insert,update) <>查询数据库目录: db2 list db directory <>查询数据库中表 db2 list tables 当前用户 db2 list tables for all 所有表 db2 list tables for schema schemaname 指定模式的表 <>显示表结构 db
=======DB2基础指令======= 1.打开数据库db2 connect to 数据库名;2.查看数据库中有哪些表db2 list tables ;3.查看数据库中的表结构db2 describe table 表名:db2 describe table 表名 show detail :(详细的结构)4.查看表的索引db2 describe indexes for table表名 (显示所有索引的标识,但是不会显示字段)db2 describe indexes for table 表名 s