yfProgramer
学习不是应付生活,应付答案。是一种追求,一个理想。
posts - 27,comments - 40,views - 76万

随笔分类 -  MySql

webfroum表
摘要:create table header( parent int not null, poster char(20) not null, title char(20) not null, children int default 0 not null, area int default 0 not null, posted datetime not null, postid int unsigned not null auto_increment primary key)engine=innodb default charset=utf8 auto_increment=1create table 阅读全文
posted @ 2011-04-22 12:57 yfProgramer 阅读(332) 评论(0) 推荐(0) 编辑
mysql创建表
摘要:说明:此文件包含了blog数据库中建立所有的表的Mysql语句.在sql语句中注意“约束的概念":1.实体完整性约束(主键--唯一且非空) primary key() 违约处理:No action(拒绝执行)2.参照完整性约束(外键约束)foregin key() references tableName(filedName) [on delete|update casecade | no action] 违约处理:级联更新或拒绝执行3.用户自定义完整性约束(not null,unique,check短语) 违约处理:拒绝执行//添加列语法//【alter table blog_ar 阅读全文
posted @ 2011-04-20 13:32 yfProgramer 阅读(140780) 评论(0) 推荐(1) 编辑
mysql sql语句大全
摘要:1、说明:创建数据库CREATE DATABASE database-name2、说明:删除数据库drop database dbname3、说明:备份sql server--- 创建 备份数据的 deviceUSE masterEXEC sp_addumpdevice 'disk', 'testBack', 'c:\mssql7backup\MyNwind_1.dat'--- 开始 备份BACKUP DATABASE pubs TO testBack4、说明:创建新表create table tabname(col1 type1 [not nu 阅读全文
posted @ 2011-04-12 11:23 yfProgramer 阅读(522244) 评论(35) 推荐(71) 编辑
MySql创建表
摘要:create table Customers( CustomersID int unsigned not null auto_increment primary key, //主键,自曾 Name char(50) not null, Address char(120) not null, City char(30) not null) 1 create table orders 2 ( 3 orderID int unsigned not null auto_increment primary key, 4 customerID int unsigned not null, 5 amount 阅读全文
posted @ 2011-04-04 17:48 yfProgramer 阅读(1689) 评论(0) 推荐(1) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示