A. DB2中怎样查询建表的sql
select name from sysibm.systables where type='T' and creator='DB2ADMIN'
type:数据库表用T表示;数据库视图用V表示
creator:数据库对象的创建者
select tabname from syscat.tables where tabschema = current schema ;// 获取当前模式下面的所有用户表
补充一下:mysql中直接用show tables 就可以查询了吧
希望采纳~
B. db2查询执行的sql语句
select tabname from syscat.tables where tabschema = current schema ;// 获取当前模式下面的所有用户表
如果对您有帮助,请记得采纳为满意答案,谢谢!祝您生活愉快!
vaela
C. db2数据库查询所有用户的sql语句
select name from sysibm.systables where type='T' and creator='DB2ADMIN'
type:数据库表用T表示;数据库视图用V表示
creator:数据库对象的创建者
D. db2 查询数据库里都有哪些表的SQL语句
select
name
from
sysibm.systables
where
type='t'
and
creator='db2admin'
type:数据库表用t表示;数据库视图用v表示
creator:数据库对象的创建者
select
tabname
from
syscat.tables
where
tabschema
=
current
schema
;//
获取当前模式下面的所有用户表
E. DB2 SQL查询
你的意思还不清楚?贴出例子,然后要求的结果
F. 怎样查看DB2的版本
“开始”》“CMD”,打开命令提示符之后,输入“db2licm -l”命令;
AIX 查看DB2版本 db2level
查看OS版本 oslevel
linux查看oracle版本 用oracle登录,sqlplus /nolog
G. db2 如何查看版本信息
db2licm -l
H. db2查询数据库所有表的sql语句该怎样写
select name from sysibm.systables where type='T' and creator='DB2ADMIN'
type:数据库表用T表示;数据库视图用V表示
creator:数据库对象的创建者
select tabname from syscat.tables where tabschema = current schema ;// 获取当前模式下面的所有用户表
I. DB2 怎么查看 sql 语法
export
to
/opt/mydb/mydata.txt
of
del
modified
by
nochardel
coldel0x09
select
table1.a,table2.d
from
table1
table2
这是导出的语句,其中nochardel表示导出到文本文件时,每个字段不用引号引起来,默认是引号引起来的,coldel表示字段之间的分隔符,
其中0x09表示tab键,如果用空格分隔就是0x20,$为0x24其他的你可以自己查。
执行过程如下:
db2=>
connect
to
yourdb
export
......
J. db2查询sql如何写
这样行吗 不过不是用 | 连的 用竖线比较复杂还得连接
替换成你表中的信息就行 你参考一下
SELECT T1.order_id,T1.merchant_id,wm_concat(T2.refund_id)
FROM A T1,B T2
WHERE T1.order_id = T2.order_id
group by T1.order_id,T1.merchant_id