数据库的基础知识
1、数据库的建库
create database 库
例:
create database TestOne

2、数据库的建表
create table 系部
(系号 nvarchar(2) not null primary key,
系名 char (20) null
)
**主键:primary key
**做完表结构之后去使用表
select * from 系部
例:
create table student
(stuno nvarchar(2) not null primary key,
stuname char(20) null,
)
select * from student


阅读量:104
阅读量:46
阅读量:79
阅读量:96
阅读量:134