
Mysql
文章平均质量分 84
Mysql=练习+笔记
BLEACH-heiqiyihu
你要允许一些人,有安静的青春。
展开
-
Linux系统部署MySQL数据库
使用命令 mount -o ro /dev/sr0 /media进行手动挂载。原创 2024-07-17 22:15:09 · 668 阅读 · 0 评论 -
Mysql数据库第五次练习
在mydb16_trigger中创建两个表goods商品表和orders订单表-> (-> );-> (-> );在商品表中导入商品记录-> ('A0001','橡皮',2.5,100),-> ('B0001','小楷本',2.8,210),-> ('C0001','铅笔',1.2,120),-> ('D0001','计算器',28,20);原创 2024-07-25 20:57:29 · 916 阅读 · 0 评论 -
Mysql数据库第四次练习
mysql> create table student(sno int primary key auto_increment,sname varchar(30) not null unique,Ssex varchar(2) check (Ssex='男' or Ssex='女') not null,Sage int not null,Sdept varchar(10) default'计算机' not null);原创 2024-07-24 21:43:50 · 630 阅读 · 1 评论 -
Mysql数据库第三次练习
1.建库建表创建数据库mydb11_stu并使用数据库创建student表和score表(1)student表(2)创建score表(1)向student表插入记录如下:mysql> insert student values(901,'张三丰','男',2002,'计算机系','北京市海淀区');mysql> insert student values(902,'周全有','男',2000,'中文系','北京市昌平区');原创 2024-07-22 21:16:24 · 1016 阅读 · 0 评论 -
Mysql数据库第二次练习
mysql> create table workerday(worker_id int(11) primary key not null comment '职工号', name varchar(20) not null comment'姓名', worker_date date not null comment'工作时间');mysql> select max(wages)'最高工资',min(wages)'最低工资' from t_worker;成绩名为workerday的数据库表。原创 2024-07-21 00:16:22 · 1051 阅读 · 0 评论 -
Mysql数据库第一次练习
mysql> create database mydb6_product;mysql> use mydb6_product;mysql> create table employess(id int,name char(50),age int,gender char(10),salary float);mysql> desc employess;mysql> alter table employess modify id int not null;mysql> alter table employess mo原创 2024-07-17 19:30:28 · 319 阅读 · 0 评论