– 表的结构 `test`–CREATE TABLE IF NOT EXISTS `test` (`id` int(11) NOT NULL AUTO_INCREMENT,`name` varchar(16) NOT NULL,`phone` int(11) NOT NULL,PRIMARY KEY...
分类:
数据库 时间:
2015-04-13 14:37:03
阅读次数:
150
虽然熟练掌握SQL的人对于Null不会有什么疑问,但总结得很全的文章还是很难找,看到一篇英文版的, 感觉还不错。Tony Hoare 在1965年发明了 null 引用, 并认为这是他犯下的“几十亿美元的错误”. 即便是50年后的今天, SQL中的 null 值还是导致许多常见错误的罪魁祸首.我们一...
分类:
数据库 时间:
2015-04-13 14:20:46
阅读次数:
207
1,完整的监控脚本如下#!/bin/bash#web_status_code=`curl -o /dev/null -s -w "http_code:%{http_code}" http://yjszs.nudt.edu.cn/`#1,web_status_code=`curl -o /dev/nu...
分类:
数据库 时间:
2015-04-13 14:12:33
阅读次数:
157
# mutex73
# imsaws@126.com
# Now in Xidian University精简了一下网上的程序//Lock.h
#pragma once#include class Mutex
{
public:
Mutex() { m_mutex = ::CreateMutex(NULL, FALSE, NULL); }
~Mutex()...
1.undefined,null,0,"" 这四个值转换为逻辑值时是false,其他无论简单类型值,对象或者函数转换过来都是true2.如图第一个是“声明了一个变量,给变量赋值(赋的是一个函数),然后又更改了变量的值第二个是”声明了一个函数,定义里里面的规则,然后把这个名字的函数又声明了一遍,定义了...
分类:
编程语言 时间:
2015-04-13 12:47:38
阅读次数:
113
具体步骤 方法说明链接地址:http://www.cnblogs.com/zhengcheng/p/4177669.html--创建学生表create table t_student( stuID number(4), stuname varchar2(20) NOT NULL, ...
分类:
其他好文 时间:
2015-04-13 12:44:05
阅读次数:
146
采用正则表达式获取地址栏参数:functionGetQueryString(name){varreg=newRegExp("(^|&)"+name+"=([^&]*)(&|$)");varr=window.location.search.substr(1).match(reg);if(r!=null...
分类:
Web程序 时间:
2015-04-13 12:23:55
阅读次数:
129
首先备份默认源:sudo cp /etc/apt/sources.list /etc/apt/sources.list.old清空默认源:sudo cat /dev/null > /etc/apt/sources.list添加源:sudo vim /etc/apt/sources.list推荐源:#...
分类:
系统相关 时间:
2015-04-13 12:14:14
阅读次数:
242
#include
using namespace std;
struct Node
{
int data;
Node * next;
Node(int x=0):data(x),next(NULL){}
};
class List
{
public:
List()
{
first = new Node();
}
void Insert(int x)
{ ...
分类:
编程语言 时间:
2015-04-13 11:05:21
阅读次数:
151
" "和null的区别
Stringstr1 = null; str引用为空
Stringstr2 = ""; str引用一个空串
也就是null没有分配空间,""分配了空间,因此str1还不是一个实例化的对象,而str2已经实例化。
注意因为null不是对象,""是对象。所以比较的时候必须是if(str1==null){...}和if(str2.equals("")){.....
分类:
其他好文 时间:
2015-04-13 09:36:25
阅读次数:
166