数据的插入

This commit is contained in:
GuanM 2024-11-19 15:49:18 +08:00
parent 8439ea1f37
commit c4273f683e

View File

@ -0,0 +1,33 @@
-- ********** create database ********** --
-- ********** Begin ********** --
create database school
-- ********** End ********** --
go
use school
go
-- ********** create table ********** --
-- ********** Begin ********** --
create table teacher(
ID int not null,
Name varchar(20) not null,
sex char(2) not null,
Phone varchar(20) null
)
-- ********** End ********** --
go
SET NOCOUNT ON
-- ********** insert ********** --
-- ********** Begin ********** --
insert into teacher(ID, Name, sex, Phone)
values(1, 'Lucy', 'F', NULL)
-- ********** End ********** --
go