dailystudy(25)•in #mssql•2910 days agomssql错误Error8120:分组必须只能查询分组字段和其他字段的聚合平时都是使用myssql的我,最近不得不开始学习mssql了。 在mysql下: select author, Datepart(hour, created) as hh from comments where created>='2017-08-01 0:00:00' and title like "穿越诗歌" an...53$0.02dailystudy(25)•in mssql•2910 days agomssql错误Error8120:分组必须只能查询分组字段和其他字段的聚合平时都是使用myssql的我,最近不得不开始学习mssql了。 在mysql下: select author, Datepart(hour, created) as hh from comments where created>='2017-08-01 0:00:00' and title like "穿越诗歌" an...53$0.02
dailystudy(25)•in #mssql•2913 days ago在steemsql(mssql)中搜索字符中含有中文我想搜索一下本年发表的和中文诗有关的文章,于是我在linqpad中使用sql语句 select from comments where created>='2018-01-01 00:00:00' and title like '%诗%' 结果是0记录,居然没有找到,这怎么回事?于是我百度谷歌,然后我换用了以下SQL语...50$0.07dailystudy(25)•in mssql•2913 days ago在steemsql(mssql)中搜索字符中含有中文我想搜索一下本年发表的和中文诗有关的文章,于是我在linqpad中使用sql语句 select from comments where created>='2018-01-01 00:00:00' and title like '%诗%' 结果是0记录,居然没有找到,这怎么回事?于是我百度谷歌,然后我换用了以下SQL语...50$0.07
dailystudy(25)•in #mssql•2916 days ago在mssql下先排序再分组SQL语句在mysql下,我会使用select ... from (select ... from... ... order by ) tmp group by ... 无 奈呀,在mssql下,子句中不支持order by 最后,在偶像 @justyy的帮助下,学会了OVER(PARTITION BY)的用法 partition...50$0.03dailystudy(25)•in mssql•2916 days ago在mssql下先排序再分组SQL语句在mysql下,我会使用select ... from (select ... from... ... order by ) tmp group by ... 无奈呀,在mssql下,子句中不支持order by 最后,在偶像 @justyy的帮助下,学会了OVER(PARTITION BY)的用法 partition...50$0.03
dailystudy(25)•in #mssql•2916 days agomssql和mssql的时间移动函数SQL函数 | different function in mssql and mysql for time inverval平时都是用mysql多, 无奈steemit上还是mssql数据库更好用,只好开始研究: 平时在mysql下想要移动时间都是需要dateadd()函数的。它的用法是 dateadd(原时间字段或常量, interval +移动数 类型) 其中类型可以year month day hour minute second -...40$0.00dailystudy(25)•in mssql•2916 days agomssql和mssql的时间移动函数SQL函数 | different function in mssql and mysql for time inverval平时都是用mysql多, 无奈steemit上还是mssql数据库更好用,只好开始研究: 平时在mysql下想要移动时间都是需要dateadd()函数的。它的用法是 dateadd(原时间字段或常量, interval +移动数 类型) 其中类型可以year month day hour minute second -...40$0.00
dailystudy(25)•in #mssql•2916 days ago显示MSSQL中的所有视图的SQL语句|show all the views of a database in MSSQL在LINQpad下查询steemsql数据,因为英语太烂,输入表名经常出错,所以就想把所有表名查询出来,复制到evernote里,需要哪个表直接就可以复制表名。 上网查了一下,在mssql下,显示所有表名的命令如下: >SELECT Name FROM DatabaseName..SysObjects Where XT...30$0.00dailystudy(25)•in mssql•2916 days ago显示MSSQL中的所有视图的SQL语句|show all the views of a database in MSSQL在LINQpad下查询steemsql数据,因为英语太烂,输入表名经常出错,所以就想把所有表名查询出来,复制到evernote里,需要哪个表直接就可以复制表名。 上网查了一下,在mssql下,显示所有表名的命令如下: >SELECT Name FROM DatabaseName..SysObjects Where XT...30$0.00