随笔分类 -  sql

storage数据库设计
摘要:create database storagego use storagecreate table easybuy_user ( eu_user_id varchar(10) not null constraint PK_easybuy_user primary key, eu_user_name 阅读全文

posted @ 2017-05-23 13:36 Iitb 阅读(141) 评论(0) 推荐(0)

easybuy数据库设计
摘要:create database easybuy /*易买网数据库*/use easybuygo /*用户表,用于存放用户基本信息*/create table easybuy_user(eu_user_id varchar(10) not null primary key,--用户名eu_user_n 阅读全文

posted @ 2017-05-23 13:35 Iitb 阅读(360) 评论(0) 推荐(0)

学生表的设计及练习
摘要:create database studentuse studentgocreate table xsb( xh char(10) not null primary key, name char(12) not null , sex bit default 1, birthday date, zy 阅读全文

posted @ 2017-05-23 13:31 Iitb 阅读(293) 评论(0) 推荐(0)

sql的练习
摘要:use master gocreate database ygglon( name='yggl_data', filename='C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\yggl.mdf', size=1 阅读全文

posted @ 2017-05-23 13:30 Iitb 阅读(3804) 评论(0) 推荐(1)

sql2008
摘要:1. 创建表: create table 表名 ( 列名 类型 是否为空 约束 ... ) 2. 数据查询: select 3. 数据定义: create 、alter、 drop 4. 数据操作: insert update delete 5. 数据控制: grant ,revoke (授权,收回 阅读全文

posted @ 2017-05-23 13:27 Iitb 阅读(132) 评论(0) 推荐(1)

导航