1.数据库和表的创建
生活随笔
收集整理的這篇文章主要介紹了
1.数据库和表的创建
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
數(shù)據(jù)庫(kù)的創(chuàng)建
create database YGGL2 on( name="YGGL2", filename="C:\Program Files\Microsoft SQL Server\MSSQL11.WANGXUELIANG\MSSQL\DATA\YGGL2.mdf", size=10mb, maxsize=50mb, filegrowth=5% ) log on( name="YGGL_log2", filename="C:\Program Files\Microsoft SQL Server\MSSQL11.WANGXUELIANG\MSSQL\DATA\YGGL_log2.ldf", size=2mb, maxsize=5mb, filegrowth=1mb )表的創(chuàng)建
create table Employees ( EmpID char(6) not null primary key, EmpName char(10) not null, EmpEdu char(4) not null, EmpBir date not null, EmpSex bit not null default 0, WorkYear tinyint, Addres varchar(40), PhoneNum char(12), DepID char(3) not null )--創(chuàng)建部門表 create table Departments ( DepID char(3) not null primary key, DepName char(20) not null, Note varchar(100), )--創(chuàng)建工資表 create table Salary ( EmpID char(6) not null primary key, InCome float not null, OntCome float not null )臨時(shí)表的創(chuàng)建
--創(chuàng)建臨時(shí)表 create table #temp ( EmpID int not null primary key, EmpAdd varchar(20) )轉(zhuǎn)載于:https://www.cnblogs.com/wangxueliang/p/9346515.html
總結(jié)
以上是生活随笔為你收集整理的1.数据库和表的创建的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Ocelot 集成Butterfly 实
- 下一篇: linux cmake编译源码,linu