From c4273f683e50cea41a3f97e8ade11b58ee3aaa83 Mon Sep 17 00:00:00 2001 From: GuanM <30427262+sxhoio@users.noreply.github.com.> Date: Tue, 19 Nov 2024 15:49:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=9A=84=E6=8F=92=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 数据库/头歌/数据的插入/数据的插入.sh | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 数据库/头歌/数据的插入/数据的插入.sh diff --git a/数据库/头歌/数据的插入/数据的插入.sh b/数据库/头歌/数据的插入/数据的插入.sh new file mode 100644 index 0000000..c29bec1 --- /dev/null +++ b/数据库/头歌/数据的插入/数据的插入.sh @@ -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 +