随笔分类 -  数据库相关

该文被密码保护。
posted @ 2020-05-31 10:39 Murraya 阅读(0) 评论(0) 推荐(0)
摘要:一、约束 1)主键 主键约束=非空约束+唯一约束 主键可以是一个列或者多个列 1)创表添加多个列作为主键 create table score1( sid int not null, cid int not null, PRIMARY key(sid,cid) ); 2)删除主键约束 alter t 阅读全文
posted @ 2020-05-31 10:38 Murraya 阅读(106) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-05-31 10:36 Murraya 阅读(0) 评论(0) 推荐(0)
摘要:一、约束 1)主键 主键约束=非空约束+唯一约束 主键可以是一个列或者多个列 1)创表添加多个列作为主键 create table score1( sid int not null, cid int not null, PRIMARY key(sid,cid) ); 2)删除主键约束 alter t 阅读全文
posted @ 2020-05-31 10:35 Murraya 阅读(138) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-03-08 21:42 Murraya 阅读(0) 评论(0) 推荐(0)
摘要:创建数据库 create database; 创建表 create table t1(id int not null auto_increment primary key, name varchar(20) not null, age varchar(20) not null, unique nam 阅读全文
posted @ 2020-02-23 21:50 Murraya 阅读(103) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-02-19 22:19 Murraya 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-02-18 21:48 Murraya 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-02-17 15:13 Murraya 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-02-17 14:40 Murraya 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-02-15 16:19 Murraya 阅读(0) 评论(0) 推荐(0)