--修改字段名称EXEC sp_rename '[dbo].[SysMenu].[Type]', 'Position', 'COLUMN'--添加字段alter table [dbo].[Agent]add [BelongToUser_ID] [uniqueidentifier] NULL DEFA...
分类:
数据库 时间:
2015-04-22 13:47:27
阅读次数:
187
IN子查询相当于OR条件,根据NULL的逻辑运算规则,哪个条件为TRUE的行就返回那个行,很简单,主要说NOT IN-----------------------------------Q1:单列NOT IN子查询中有NULL的分析---------------------------------d...
分类:
其他好文 时间:
2015-04-22 13:45:23
阅读次数:
131
create table student(Sno int primary key not null,--设置主键Sname varchar(50)not null,Ssex varchar(50)not null,Sbirthday date ,Class varchar(50),)insert ....
分类:
数据库 时间:
2015-04-22 13:36:18
阅读次数:
183
create database 作业use 作业--创建学生表create table Student(Sno char(3) primary key not null,Sname char(8) not null,Ssex char(2) not null,Sbirthday datetime ....
分类:
数据库 时间:
2015-04-22 13:32:45
阅读次数:
226
第一步:实现一个调用类: /** * 有回调的查询 */ public T query(String sql,MyHandler mh){ T t = null; //声明conn Connection con = null; try{ con = ds.getConnection(); //执行....
分类:
其他好文 时间:
2015-04-22 13:32:27
阅读次数:
125
解决办法:删除之前判断是否为空if(Object != null){ session.delete(Object); }
分类:
其他好文 时间:
2015-04-22 10:59:04
阅读次数:
125
下面分别创建三张表,并分别插入1W条简单的数据用来测试,详情如下:[1] test_a 有主键但无索引CREATE TABLE `test_a` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(100) NOT NUL...
分类:
数据库 时间:
2015-04-22 09:26:39
阅读次数:
172
题目:如下为类型CMyString的声明,请为该类型添加赋值运算符函数。
class CMyString
{
public:
CMyString(char* pData = NULL);
CMyString(const CMyString& str);
~CMyString(void);
CMyString& operator = (const CMyString...
分类:
其他好文 时间:
2015-04-22 00:43:45
阅读次数:
198
1. JSON方式封装通过php文件生成JSON数据,方法:json_encode($value)注意:该函数只能接收UTF-8编码的数据,如果传递其他类型的数据则会返回null。 1, 'name' => 'singwa'); echo json_encode($arr);>php字符串编码转换函...
分类:
其他好文 时间:
2015-04-22 00:16:22
阅读次数:
128
#include
#include
#include
using namespace std;
template
struct BinTreeNode
{
T data;
BinTreeNode *leftchild;
BinTreeNode *rightchild;
BinTreeNode(T x=T()):data(x),leftchild(NULL),rightchild(NU...
分类:
其他好文 时间:
2015-04-21 22:53:02
阅读次数:
138