码迷,mamicode.com
首页 >  
搜索关键字:primary    ( 4545个结果
A very hard Aoshu problem
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
搭建单机dg
一台linux下oracleDG搭建standby:物理Standby·····与primary库结构一模一样,提供灾备,减少IO/CPU占用(灾难恢复高可用性)逻辑standby·····与primary库结构不同(可以创建除primary库存在的索引..)(灾难恢复高可用性/业务需求#ddl/dml)物理standby特点灾难恢复及高可..
分类:其他好文   时间:2014-11-21 16:29:48    阅读次数:248
sql 系统表(sys.sysobjects)
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
select count(*)和select count(1)
原文: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
java访问数据库的sql
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
MySql语法
创建学生表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
Using SQLXML Bulk Load in the .NET Environment
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
Mysql优化之深入了解存储引擎,进行索引优化
创建表: 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
创建触发器在表中播入数据时ID自动增长
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!