有一个大胆的想法,自己写个数据库。1.先从最简单的建表,删除表功能写起。2.IUD操作。Insert/Update/Delete.3.支持索引4.支持查询,SELECT5.支持排序,ORDER BY6.优化器,初步的解析功能,语义分析,语法分析7.实现Buffer Pool功能8.实现日志功能,在D...
分类:
数据库 时间:
2014-07-02 10:16:38
阅读次数:
812
#region File Header & Copyright Notice/* * Copyright (C) 2014 XXX, INC. All Rights Reserved. * THIS SOURCE CODE IS CONFIDENTIAL AND PROPRIETARY AND MA...
分类:
其他好文 时间:
2014-07-02 10:07:59
阅读次数:
221
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
分类:
其他好文 时间:
2014-07-02 10:01:21
阅读次数:
173
根据类名查找类:ctrl + N;根据名称查找文件:ctrl + shift + N;根据名称查找符号:Ctrl + Alt + Shift + N;代码生成(constructor, setter, getter, toString等等):ALT + INSERT;代码块折叠:CTRL + .(C...
分类:
其他好文 时间:
2014-07-02 10:00:42
阅读次数:
189
netstat 命令详解netstat用于显示与IP、TCP、UDP和ICMP协议相关的统计数据,一般用于检验本机各端口的网络连接情况。常用:netstat -anp | grep 进程名、pid进程号、端口号参数一般用的:-aup-anp-anltp-ano参数含义介绍-a (all)显示所有连接...
分类:
Web程序 时间:
2014-07-02 09:57:25
阅读次数:
387
--向表“j0261”插入数据时,检查学号是否存在于表“j026”中,如存在则进行插入操作,否则就不插入。
create trigger checkid on j0261
instead of insert
as
if(not exists(slect * from j026 where 学号=(select 学号 from inserted)))--如果插入j0261的那一条数据里的'学号'不存...
分类:
数据库 时间:
2014-07-02 09:39:12
阅读次数:
268
一,定义
官方定义:是在大型数据库系统中,一组为了完成特定功能的SQL语句集,经编译后存储在数据库中,用户通过指定存储过程的名字并给出参数(如果该存储过程带有参数)来执行它。
个人理解:对数据库进行复杂操作时,比如对多个表进行Update,Insert,Query,Delete时,对这些复杂操作的SQL语句的封装。
二,基本语法:
1.创建存储过程...
分类:
其他好文 时间:
2014-07-02 09:12:32
阅读次数:
135
The Direct I/O (Load/Store) module(即是LSU) serves as the source of all outgoing direct I/O packets(LSU用于配置发起数据读/写的SRIO设备端,发起端发送Direct IO包). With direct I/O, the RapidIO packet contains the specific add...
分类:
其他好文 时间:
2014-07-02 08:48:15
阅读次数:
472
Accessors
存取方法
All instance variables are private in Objective-C by default, so you should use accessors to get and set values in most cases. There are two syntaxes. This is the traditional 1.x syntax:
OC中所有的实例变量默认是私有的,所以多数情况下你应该使用访问器来获得和设置实例变量的值。访问器有...
分类:
其他好文 时间:
2014-07-02 08:39:04
阅读次数:
231
1.背景 项目需要,用python实现了将字典内容存入本地的mysql数据库。比如说有个字典dic={"a":"b","c":"d"},存入数据库效果图如下:2.代码 '''
Insert items into database
@author: hakuri
'''
import MySQLdb
def InsertData(TableName,dic):
try:
...
分类:
数据库 时间:
2014-07-02 08:37:12
阅读次数:
653