Home > Database > Mysql Tutorial > mysql总结_MySQL

mysql总结_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:49:06
Original
817 people have browsed it

bitsCN.com

学习mysql之后的一点总结

1.想要在命令提示符下操作mysql服务器,添加系统变量。(计算机-系统属性——环境变量——path)

2.查询数据表中的数据;

select selection_list     select * /columns 

from table_list    from table1/table2

where  primary_constraint   

group by  grouping_columns

order by  sorting_colomns     desc降序   select * from table order by  id desc;

having  second_constraint    

limit  count           select * from table where id limit 1,4;

2  常用的统计函数:avg(字段),sum(字段),count(字段),min(字段),

select sum(字段2) as 别名 ,字段1  from table group by 字段1;

3  算数运算,字符串,以及逻辑运算构造表达式:select * (price*0.8) as '80%'  from table;打八折

bitsCN.com
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template