博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
db2常用语句
阅读量:4514 次
发布时间:2019-06-08

本文共 373 字,大约阅读时间需要 1 分钟。

连接数据库

db2 connect to chmgmdb user ch_mgm

断开数据库

db2 disconnect current

查询

db2 "select * from btpoper where brhid='907020000' and oprid='0001'"

db2 "select oprid,oprnm,brhid,passwd from btpoper"

显示表前10行

select * from <表名> fetch first 10 rows only

查看当前数据库表空间分配状况

db2 list tablespaces show detail

 联表查询

left join

排序

group by

 

转载于:https://www.cnblogs.com/mustafayin/p/8930309.html

你可能感兴趣的文章
HDOJ 2502月之数
查看>>
Mybatis基础-完整CRUD操作
查看>>
hadoop之 mapreduce example(2)
查看>>
3.2.2.频数分布
查看>>
Django图文混排
查看>>
No converter found for return value of type: class com.alibaba.fastjson.JSON解决办法
查看>>
苦酒入喉心作痛,红酒入鹅鹅想哭——震惊!勒索病毒想哭靠wine感染了Ubuntu16.04...
查看>>
VB内存操作类模块
查看>>
Python 2.7 与Python3的区别
查看>>
修复grub
查看>>
权值线段树
查看>>
leetcode 388.Lonest Absolute File Path
查看>>
瀑布流
查看>>
ECS
查看>>
如何利用Python词云和wordart可视化工具对朋友圈数据进行可视化展示
查看>>
如何高效利用github提升自己
查看>>
BZOJ1590 [Usaco2008 Dec]Secret Message 秘密信息
查看>>
无缝轮播
查看>>
关于图片上传的实例
查看>>
JS HTML DOM 事件对象(onclick、onmouseenter)
查看>>