用sql代码写一个学生信息数据库包括姓名,学号,性别,年龄,冰写出一条插入信息语句
1个回答
展开全部
CREATE DATABASE Students
ON PRIMARY
(
NAME = 'STU_DATA',
FILENAME = 'C:\MYSQL\SUT_DATA.MDF',
SIZE = 5,
FILEGROWTH = 15%
)
LOG ON
(
NAME = STUL_DATA',
FILENAME = 'C:\MYSQL\SUTL_DATA.LDF',
SIZE = 5,
FILEGROWTH = 10%,
)
GO
USE Students
CREATE TABLE Student
(
学号 INT NOT NULL PRIMARY KEY,
性别 NVARCHAR(10) NOT NULL,
年龄 NVARCHAR(10) NOT NULL,
)
GO
INSERT Student VALUSE (01,'男','20')
ON PRIMARY
(
NAME = 'STU_DATA',
FILENAME = 'C:\MYSQL\SUT_DATA.MDF',
SIZE = 5,
FILEGROWTH = 15%
)
LOG ON
(
NAME = STUL_DATA',
FILENAME = 'C:\MYSQL\SUTL_DATA.LDF',
SIZE = 5,
FILEGROWTH = 10%,
)
GO
USE Students
CREATE TABLE Student
(
学号 INT NOT NULL PRIMARY KEY,
性别 NVARCHAR(10) NOT NULL,
年龄 NVARCHAR(10) NOT NULL,
)
GO
INSERT Student VALUSE (01,'男','20')
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |