有时我们用数据库存储文件,需要用到二进制字段,下面列常用方法。 1.写二进制数据 sqlite3 *
db; int result; char **errmsg =NULL; result = sqlite3_open("test.db", &db );
if( result != SQLITE_O...
分类:
数据库 时间:
2014-05-14 02:45:00
阅读次数:
371
访问权限四大类:权限从大->小1、public: 公共权限2、protected:
受保护权限3、default: 包级别访问权限/默认权限4、private: 私有权限以public为例,使用方法如下:public class Test{
public int i; publ...
分类:
编程语言 时间:
2014-05-14 02:35:41
阅读次数:
342
|l-i-a-n-g|无标题文档这是最新文档|l-i-a-n-g|
分类:
Web程序 时间:
2014-05-13 23:45:38
阅读次数:
428
Round 236 div.1 A:只需要每个点连接所有比他大的点,知道边用完为止。 //By
BLADEVIL#include #include #define maxn 25;using namespace std;int main() { int
task; scanf("%...
分类:
其他好文 时间:
2014-05-13 21:24:43
阅读次数:
440
路由器的几种连接方式NAT英文全称是“Network Address
Translation”,中文意思是“网络地址转换”,它是一个IETF(Internet Engineering Task Force,
Internet工程任务组)标准,允许一个整体机构以一个公用IP(Internet Prot...
分类:
其他好文 时间:
2014-05-13 18:40:26
阅读次数:
317
在不同包,子类继承后可以使用父类的protect权限的属性或方法父类:package
com.tinyphp;public class Father{ protected String name;}子类:package
com.test;import com.tinyphp.Father;cl...
分类:
编程语言 时间:
2014-05-13 18:19:55
阅读次数:
404
http://virtualenv.readthedocs.org/en/latest/
分类:
编程语言 时间:
2014-05-13 18:00:19
阅读次数:
241
--增加文件组alter database Test add filegroup
[FG1]goalter database Test add filegroup [FG2]GOalter database Test add
filegroup [FG3]--增加文件ALTER DATABASE [...
分类:
数据库 时间:
2014-05-13 17:34:41
阅读次数:
374
一.环境准备系统环境CentOSrelease6.3(Final)内核信息2.6.32-279.el6.x86_64ip地址vip192.168.64.120master192.168.64.132心跳线:10.0.0.1主机名:DBmaster.testslave192.168.64.135心跳线:10.0.0.2主机名:DBbak.test镜像磁盘master/dev/sdcslave/dev/sdcfdisk-l安装依赖环境y..
分类:
数据库 时间:
2014-05-13 04:34:45
阅读次数:
473
2.0 简介
正则表达式是可以用来查找与给定模式匹配的文本的搜索模式。例如,在上一章中,我们在一个较长的字符串中查找子字符串Cookbook:
var testValue = "This is the Cookbook's test string";
var subsValue = "Cookbook";
var iValue = testValue.indexOf(subsVal...
分类:
编程语言 时间:
2014-05-12 23:26:34
阅读次数:
635