![](https://img-blog.csdnimg.cn/20190927151124774.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
SQL学习与使用
SQL的学习与使用, 记录自己积累的过程
zhouyanjun_
一直在学习。。。
展开
-
mysql5.7已存在的表增加自增字段
mysql5.7已存在的表增加自增字段原创 2022-11-30 10:00:12 · 466 阅读 · 0 评论 -
一道SQL面试题
记录自己遇见过的SQL题原创 2022-11-16 10:54:31 · 199 阅读 · 0 评论 -
解决:Reading table information for completion of table and column names
mysql -A不预读数据库信息(use dbname 更快)—Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -Ahttps://img-blog.csdn.net/20160716004635662mysql> use dbnameReading table information for原创 2021-04-07 19:34:34 · 7180 阅读 · 0 评论 -
SQL中日期格式的处理to_char函数
日期和字符转换函数用法(to_date,to_char)select to_char(sysdate,‘yyyy-mm-dd hh24:mi:ss’) as nowTime from dual; //日期转化为字符串select to_char(sysdate,‘yyyy’) as nowYear from dual; //获取时间的年select to_char(sysdate,‘mm’) as nowMonth from dual; //获取时间的月select to_c.原创 2021-03-25 10:37:32 · 6541 阅读 · 0 评论 -
sqlyog连接mysql错误码2058 正确处理方式
首先保证你的MySQL数据库安装成功cmd命令下 mysql -uroot -p这样就启动成功了。。。sqlyog配置新连接报错:错误号码 2058,是因为mysql 密码加密方法变了。先登录你的数据库,然后执行ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘password’;password是你的登陆密码。查看mysql的端口号:先登录你的数据库,然后执行 mysql> sh原创 2020-09-30 01:07:27 · 1703 阅读 · 2 评论 -
MySQL8.0安装——亲身实践版
有了安装包之后。4.勾选【I accept the license terms】然后点击【Next】。5.选择【Custom】然后点击【Next】。6.双击【MySQL Servers】。7.双击【MySQL Server】。8.双击【MySQL Server 8.0】。9.选择【MySQL Server 8.0.17 - X64】,然后点击向右的箭头。10.双击【MySQL Server 8.0.17-X64】。11.勾选【Document.原创 2020-09-30 00:48:47 · 148 阅读 · 0 评论 -
02_MySQL基础笔记
02_MySQL笔记解决SQL步骤(刘优):最基础的基表, from考虑一张表的数据够不够, 如果不够进行连接 join再考虑是外还是内, 如果是外还得考虑保证哪张表完整有join必须要有on是否需要对当前的大基表进行基础的行过滤. where是否需要分组, 分组依据的列是什么. group by如果有分组,第一时间,把分组的列放在 select 后面, 并同时继续分析要选择哪些列或统计运算.是否要再对分组结果进行进一步过滤, 如果需要使用having是否需要排序, 如果需要使用or原创 2020-08-07 12:50:21 · 111 阅读 · 0 评论