Mysql
渐失ing
自助者,天助之。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Mysql_select(1)
Mysql_select(1) create table student( id int not null default 1, `name` varchar(20) not null default '', chinese float not null default 0.0, english float not null default 0.0, math float not null default 0.0 ); insert into student(id,原创 2021-05-11 22:38:34 · 323 阅读 · 0 评论 -
Mysql_update_delete
Mysql_update_delete update -- update 改 -- 没有带 where 条件 会修改所有的记录 update `pme` set salary=500; -- 指定 笑 的salary=800 update `pme` set salary=800 where username='笑'; -- 指定 笑 的salary=900,sex='女' update `pme` set salary=900,sex='女' where username='笑'; -- 指定原创 2021-05-10 22:36:27 · 160 阅读 · 0 评论 -
mysql_数据库备份
一 、数据库备份 -----------将数据库 db01 备份到 d 盘中 已删除 db01 下面进行恢复 二 、数据库表的备份与恢复 恢复之前要先 use db01 再恢复语句原创 2021-05-04 15:10:51 · 108 阅读 · 0 评论 -
Mysql_insert
Mysql_insert -- 创建 create table `goods`( id int , goods_name varchar(32), price double ); -- 添加 insert insert into `goods`(id,goods_name,price) values (10,'华为手机',2560); insert into `goods` values (20,'小米手机',2699); insert int原创 2021-05-10 12:49:52 · 110 阅读 · 0 评论 -
Mysql_table_字段
Mysql_table_字段 -- 增加字段 alter table emp add ing varchar(32) not null default '' after job; -- 改变 表 emp 添加 ing 类型为varc.. 不 空 默认 在 job 之后 -- 修改字段 alter table emp modify job char(36) not null default '' after id; -- 改变 表 emp 修改 jo原创 2021-05-10 10:43:36 · 220 阅读 · 0 评论
分享