A very hard Aoshu probleProblem DescriptionAoshu is very popular among primary school students. It is mathematics, but much harder than ordinary mathe...
分类:
其他好文 时间:
2014-11-22 21:32:46
阅读次数:
190
一台linux下oracleDG搭建standby:物理Standby·····与primary库结构一模一样,提供灾备,减少IO/CPU占用(灾难恢复高可用性)逻辑standby·····与primary库结构不同(可以创建除primary库存在的索引..)(灾难恢复高可用性/业务需求#ddl/dml)物理standby特点灾难恢复及高可..
分类:
其他好文 时间:
2014-11-21 16:29:48
阅读次数:
248
1 select distinct type from sys.sysobjects 查询系统表的type信息2 type 字段AF = 聚合函数 (CLR)C = CHECK 约束D = DEFAULT(约束或独立)F = FOREIGN KEY 约束PK = PRIMARY KEY 约束P = ...
分类:
数据库 时间:
2014-11-19 23:53:18
阅读次数:
289
原文:http://blog.csdn.net/hzhsan/article/details/9186831一般情况下,Select Count (*)和Select Count(1)两着返回结果是一样的 假如表沒有主键(Primary key), 那么count(1)比count(*)快, 如果有...
分类:
其他好文 时间:
2014-11-19 00:07:21
阅读次数:
244
drop database if exists STOREDB;create database STOREDB;use STOREDB;create table CUSTOMERS ( ID bigint not null auto_increment primary key, NAME var.....
分类:
数据库 时间:
2014-11-18 17:32:28
阅读次数:
192
创建学生表create table student(id int,name varchar(20),sex char(2),age int,dept varchar(30),primary key(id));创建课程表create table course(id int,name varchar(3...
分类:
数据库 时间:
2014-11-17 21:08:31
阅读次数:
220
http://msdn.microsoft.com/en-us/library/ms171878.aspx1.首先创建一张表CREATE TABLE Ord ( OrderID int identity(1,1) PRIMARY KEY, CustomerI...
分类:
数据库 时间:
2014-11-17 17:13:12
阅读次数:
311
创建表:
create table smth
(
id int(11) not null default 0,
var int(11) default NULL,
content varchar(3000) default null,
intro varchar(3000) default null ,
primary key(id),
key idver(id,var)...
分类:
数据库 时间:
2014-11-15 23:18:13
阅读次数:
381
1、基本表的定义、删除和修改
(1)定义基本表
create table ([列级完整性约束条件]
[,[列级完整性约束条件]]
……
[,])
如:创建一个“学生”表student
create table student
(Sno int primary key auto_increment, /*列级完整性约束条件,Sno是主码,整型,自动增加*/
Sn...
分类:
数据库 时间:
2014-11-15 20:20:02
阅读次数:
245
create table ttt (id number primary key ,name varchar2(20),age number(2))create or replace trigger gger_tt before insert on tttfor each row when (new....
分类:
其他好文 时间:
2014-11-15 15:26:57
阅读次数:
172