• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

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

mysql 搞代码 4年前 (2022-01-09) 11次浏览 已收录 0个评论

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

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

select s本文来源gao@!dai!ma.com搞$$代^@码5网@election_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;打八折gaodaima.com


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:学习mysql之后的一点总结(基础)_MySQL

喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址