建一个SpringWater 的数据库
sql server: create database SpringWater
mysql: create schema
创建一个模式
create schema 模式名 authorization 用户名
在该模式下建一个表
create table [模式名.S](
S# char(20) not null primary key,
Sname char(20) not null,
Age int,
Sex char(5),
check (Age between 0 and 120)
)
本文介绍如何使用SQL Server和MySQL创建名为SpringWater的数据库,并详细解释了如何定义模式及在该模式下创建包含特定约束的数据表。
1298

被折叠的 条评论
为什么被折叠?



