摘要: int转stringint n = 0;std::stringstream ss;std::string str;ss<<n;ss>>str;string转intstd::string str = "123";int n = atoi(str.c_str()); 阅读全文
posted @ 2016-05-27 17:18 盛小胖 阅读(151) 评论(0) 推荐(0) 编辑
摘要: ASCII码表 0-127 阅读全文
posted @ 2016-05-27 17:17 盛小胖 阅读(182) 评论(0) 推荐(0) 编辑
摘要: ①首先将vector排序 sort( vecSrc.begin(), vecSrc.end() ); // 1,2,3,3,4,4,6,7,8,9 ②然后使用unique算法,unique返回值是重复元素的开始位置。 vector<int>::iter pos; pos = unique(ivec. 阅读全文
posted @ 2016-05-27 13:56 盛小胖 阅读(1140) 评论(0) 推荐(0) 编辑
摘要: When a table column is defined with the implicitly hidden attribute, that column is unavailable unless it is explicitly referenced. For example, if a 阅读全文
posted @ 2016-05-27 12:04 盛小胖 阅读(564) 评论(0) 推荐(0) 编辑
摘要: 现已有一行数据,要复制为多行,每行只有两个字段值不同,db2 没有sql server的top关键字,本只想复制几次,然后update逐条数据,发现不行。 然后想到不如临时创建一张表B,插入此行数据,然后不断修改B再插入A. DB2复制表结构: create table table_name_new 阅读全文
posted @ 2016-05-23 17:27 盛小胖 阅读(6864) 评论(0) 推荐(0) 编辑
摘要: 挺有趣的,转来记录 随着C++11标准的出现,C++标准添加了许多有用的特性,C++代码的写法也有比较多的变化。 vector是经常要使用到的std组件,对于vector的遍历,本文罗列了若干种写法。 (注:本文中代码为C++11的代码,需要在较新的编译器中编译运行) 假设有这样的一个vector: 阅读全文
posted @ 2016-05-20 14:25 盛小胖 阅读(1108) 评论(0) 推荐(0) 编辑
摘要: http://www.169it.com/article/3215620760.html http://www.cnblogs.com/sharpfeng/archive/2012/09/18/2691096.html 在C++的STL库中,要实现排序可以 通过将所有元素保存到vector中,然后通 阅读全文
posted @ 2016-05-20 14:09 盛小胖 阅读(23201) 评论(0) 推荐(1) 编辑
摘要: Use the LOAD online utility to load one or more tables of a table space. The LOAD utility loads records into the tables and builds or extends any inde 阅读全文
posted @ 2016-05-17 13:17 盛小胖 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 这个困扰了我两天的问题终于解决了,在运行这个job时:总是提示 一直在努力找为什么这两个DD不存在,明明是默认的好吗,加上对JCL以及主机Z不熟悉,导致一直认为这应该用的是系统配置好的data set。 直到今天下午,仔细看了描述,觉得应该是用来存放东西的,虽然有些描述看不懂,但试着自己创建了一下。 阅读全文
posted @ 2016-05-16 14:39 盛小胖 阅读(647) 评论(0) 推荐(0) 编辑
摘要: An identity column contains a unique numeric value for each row in the table. DB2® can automatically generate sequential numeric values for this colum 阅读全文
posted @ 2016-05-12 16:03 盛小胖 阅读(509) 评论(0) 推荐(0) 编辑