继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

学习mysql之后的一点总结(基础)

linux零基础学习视频
关注TA
已关注
手记 276
粉丝 29
获赞 122

           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;打八折

打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP