![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DB2
笑是神的伪装
我欲乘风破浪,踏遍黄沙海洋
与其误会一场,也要不负勇往
我愿你是个谎,从未出现南墙
展开
-
sqlServer 查询A表比B表多的数据
--B表比A表多的数据 select * from ent_slf_expect_inventory_copy1 B where ( select count(1) as num from ent_slf_expect_inventory A where A.institution_id = B.institution_id and B.product_id = A.product_id and...原创 2020-04-08 09:54:47 · 1341 阅读 · 0 评论 -
sql 查询重复记录并删除
--查询重复记录 select original_product_name,original_product_spec from ent_sfl_product_mapping where deleted = 0 group by original_product_name,original_product_spec having count(1) > 1 --删除重复记录 d...原创 2020-03-16 14:58:58 · 684 阅读 · 0 评论 -
oracle,db2,sqlserver 复制表结构及数据
oracle复制表结构及其数据: create table table_name_new as select * from table_name_old db2复制表结构及其数据 需要两句: create table table_name_new like table_name_old insert into table_name_new select * from table_na...原创 2019-01-11 19:39:19 · 880 阅读 · 0 评论 -
java jdbc连DB2需要的依赖
<dependency> <groupId>com.ibm.db2.jcc</groupId> <artifactId>db2jcc4</artifactId> <version>10.1</version>原创 2018-12-11 17:03:38 · 2430 阅读 · 0 评论 -
DB2 SQL Error: SQLCODE=-668, SQLSTATE=57016错误解决方法
这个错误是:表处于”装入暂挂”状态。 经多次尝试 总结方法: 1:reorg table 表名 (表名后面不要加分号,否则会报没有这张表),还有就是在dbvisualizer这种工具客户端中执行会报-104错误,用db2的命令行处理器就好; 假如不好使,则尝试下面方法。 2:先前尝试装入(LOAD)此表失败。表的状态应该是load pending,你可以执行一下db2 “lo...转载 2019-02-14 18:41:37 · 12282 阅读 · 0 评论