sql
blue_key2012
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
sql视图
原创 2021-01-25 17:07:04 · 197 阅读 · 1 评论 -
sql索引
原创 2021-01-25 15:53:15 · 185 阅读 · 0 评论 -
sql事务
原创 2021-01-25 15:27:32 · 187 阅读 · 0 评论 -
表基本操作(增删改查)
表名:students 列:id name age score 表名:class 列:id name 一、新增 (insert) insert into students (id,name)values(1,‘zhangsan’); 二、删除(delete) delete from students where name=‘zhangsan’; 三、修改(update) update students set name=‘zhangsan’ where id=1; 四、查询(select) 1、基本查询 s原创 2020-12-28 23:21:43 · 171 阅读 · 0 评论 -
表结构管理
一、基本操作 注:test为表名 1、新增 create table test( id int not null, name varchar(50) not null); 2、删除 drop table test; 3、修改 (1)添加列 alter table test add column 列名 varchar(20) not null (2)修改列 alter table test change column 列名 列属性 新属性 ; (3)删除列 alter table.原创 2020-12-16 20:33:04 · 154 阅读 · 0 评论 -
数据库管理
注:test为数据库名称 一、基本使用 1、新增数据库 create database test; 2、删除数据库 drop database test; 3、使用数据库 use test 4、查询数据库 show databases; 二、其他 1、登录 mysql -r 用户名 -p 密码 2、备份 mysqldump -u用户名 -p密码 ...原创 2020-12-16 20:21:54 · 133 阅读 · 0 评论 -
sql的连接
sql的连接 sql连接的种类及区别 1、内连接(inner join):查询结果为被连接两个表完全匹配数据 2、外连接: A、左外连接(left join):左表全部数据+匹配上的右表数据(未匹配显示NULL) B、右外连接(right join):右表全部数据+匹配上的左表数据(未匹配显示NULL) C、全外连接(full join):左右表全部记录(未匹配显示NULL) 语法: select...原创 2019-12-05 23:17:23 · 153 阅读 · 0 评论
分享