柒星_com level
获赞
10
粉丝
1
关注
1
看过 TA
36
皖南医学院
2021
运维工程师
IP属地:浙江
暂未填写个人简介
私信
关注
在此计算机中仅有部分visual studio2010产品已升级到SP1,只有全部升级,产品才能正常运行大番薯没有心已于 2024-04-28 12:44:04 修改阅读量1w 收藏 24点赞数 38分类专栏: 开发工具 文章标签: visual studio ide版权开发工具专栏收录该内容11 篇文章1 订阅订阅专栏先说废话:本人机子刚装系统Win10专业版1709开始安装VS2010的时候中途报错了,有一个什么驱动不兼容,被我给关闭了,继续安装完,然后找不到VS的启动快捷方式,开始里面没有,于是我开始修复VS2010重新打开vs2010 iso setup.exe开始进入界面修复,然后就有了vs启动快捷方式,然后拖到桌面打开发现报了这个错误:“在此计算机中仅有部分visual studio2010产品已升级到SP1,只有全部升级,产品才能正常运行”。于是我打开之前安装SQL Server 2012,也是报这个错误,妈耶,我开始难受了,经多方百度,百度,再百度,找到解决方法开始解决:给两个神奇的地址:https://support.microsoft.com/zh-cn/help/983509/description-of-visual-studio-2010-service-pack-1https://my.visualstudio.com/Downloads?q=visual%20studio%202010%20service%20pack%201(需要有微软账号哦!)请下载:mu_visual_studio_2010_sp1_web_installer_x86_651694.exe这么一个在线安装的东东,它可以帮你修复这个鬼问题。修复后就可以愉快的使用SQL Server 2012和vs2010啦,(ノへ¯,)。由于没有Ç币以及我从不向恶势力低头,为了给同样委屈的宝宝提供方便,我提供mu_visual_studio_2010_sp1_web_installer_x86_651694.exe百度网盘链接:https : //pan.baidu.com/s/1vAcGz0yPAVEiTdAULv4HCw补一个离线包地址:https://filepursuit.com/deleted?q=VS2010SP1dvd1%20iso上面那个在线下载的如果安装不上,用下面的离线版安装————————————————                            版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。                        原文链接:https://blog.csdn.net/m0_37230651/article/details/80483041#牛客创作赏金赛#
0 点赞 评论 收藏
分享
#牛客创作赏金赛##记录你的求职/职场日常#最常用SQL Server和OracleMySQL中字符串截取主要包括三种截取方式,一是截取字符串前(后)几个字符,二是按照长度截取,三是按照分隔符截取。一、截取方式类型函数名描述截取前(后)几个字符left(str,n)返回字符串 str 的前 n 个字符right(str,n)返回字符串 str 的后 n 个字符按长度截取mid(str, start, length)从字符串 str 的 start 位置开始截取长度为 length 的子字符串substr(str, start, length)从字符串 str 的 start 位置开始截取长度为 length 的子字符串substring(str, start, length)从字符串 str 的 start 位置开始截取长度为 length 的子字符串按分隔符截取substring_index(str, delimiter, number)返回从字符串 s 的第 number 个出现的分隔符 delimiter 之后的子串。如果 number 是正数,返回第 number 个字符左边的字符串。如果 number 是负数,返回第(number 的绝对值(从右边数))个字符右边的字符串二、实例select#返回字符串 student 中的前3个字符:left('student',3), #stu#返回字符串 student 的后两个字符:right('student',3),#ent#从字符串 'student' 中的第 2 个位置开始截取 3个 字符:mid('student', 2, 3), #tud substr('student', 2, 3), #tudsubstring('student', 2, 3), #tud #如果 number 是正数,返回正数第 number 个分隔符左边的字符串substring_index('student,学生,12',',',1), #studentsubstring_index('student,学生,12',',',2), #student,学生#如果 number 是负数,返回倒数第(绝对值number)个分隔符右边的字符串。substring_index('student,学生,12',',',-1),  #12substring_index('student,学生,12',',',-2),  #学生,12substring_index(substring_index('student,学生,12',',',-2),',',1)  #学生#输出结果:stu|end|tud|tud|tud|student|student,学生|12|学生,12|学生求解代码方法一: month和yearselect    count(distinct device_id) as did_cnt,    count(device_id) as question_cntfrom question_practice_detailwhere month(date) = 8 and year(date) = 2021方法二: date_formatselect    count(distinct device_id) as did_cnt,    count(device_id) as question_cntfrom question_practice_detailwhere date_format(date,'%Y%m') = '202108'方法三: date_formatselect    count(distinct device_id) as did_cnt,    count(device_id) as question_cntfrom question_practice_detailwhere date_format(date,'%y%m') = '2108' 方法四: likeselect    count(distinct device_id) as did_cnt,    count(device_id) as question_cntfrom question_practice_detailwhere date like '2021-08%' 方法五: substringselect    count(distinct device_id) as did_cnt,    count(device_id) as question_cntfrom question_practice_detailwhere substring(date,1,7) = '2021-08' 方法六: midselect    count(distinct device_id) as did_cnt,    count(device_id) as question_cntfrom question_practice_detailwhere mid(date,1,7) = '2021-08'方法七: leftselect    count(distinct device_id) as did_cnt,    count(device_id) as question_cntfrom question_practice_detailwhere left(date,7) = '2021-08'方法八: substring_indexselect    count(distinct device_id) as did_cnt,    count(device_id) as question_cntfrom question_practice_detailwhere substring_index(date,'-',2) = '2021-08'
0 点赞 评论 收藏
分享

创作者周榜

更多
关注他的用户也关注了:
牛客网
牛客企业服务