![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
心心强
学海无涯吧。希望跟大家多多交流。
展开
-
Mysql order by排序
原创 2020-01-15 15:16:21 · 77 阅读 · 0 评论 -
mysql where模糊查询
1.模糊查询 1.like 2.%表示任意多个任意字符 3._表示一个任意字符 例: select *from students where name like '黄%'; where 条件判断的总结: 1.比较运算: >< >= <= = ! <> 2.逻辑运算:and or not 3.模糊查询: like % 任意0个或者多个字...原创 2020-01-14 14:12:39 · 1844 阅读 · 0 评论 -
msql 表insert select update delete (三)
1.插入数据 insert into 表名 values("字段1“,字段2.) mysql> insert into classes values(null,"WuLiu",98); Query OK, 1 row affected (0.01 sec) 多行插入 mysql> insert into classes values(3,"GuanLi",22),(4,"Kuai...原创 2020-01-13 17:03:07 · 124 阅读 · 0 评论 -
mysql 表结构的修改(二)
1.修改表结构 alter table 表名字 add 列名 类型; mysql> alter table students add birthday datetime; Query OK, 0 rows affected (0.00 sec) Records: 0 Duplicates: 0 Warnings: 0 mysql> desc students; +-----...原创 2020-01-13 15:47:42 · 126 阅读 · 0 评论 -
mysql数据库操作
1.查看 show 使用use 创建create 删除drop数据库的命令 create database 数据库名 drop database 数据库名 use 数据库名字 select database() 2.数据库操作 #sql语句最后需要分号;结尾 --链接数据库 mysql -uroot -p密码 --退出数据库 exit quit ctrl +d --显...原创 2020-01-10 22:44:33 · 110 阅读 · 0 评论 -
mysql 表结构的创建(一)
1.创建表 CREAT TABLE tabel_name { 字段名称 数据类型 可选择的约束条件, column dataType contrai, --主键说明可以放在字段中单独说明 也可以放在最后统一说明 PRIMARY KEY(one or more columns) }; 提示 auto_incremert 表示自动增长 --查看当前数...原创 2020-01-13 09:43:55 · 1016 阅读 · 0 评论