帮忙找下错。
declare @begin datetime
declare @end datetime --结束时间
declare @stcd char(8)
set @begin='2010-5-20 15:15:54'
set @end='2010-7-20 15:16:13'
set @stcd='90800001'
--AS
--begin
select a.stcd,b.h1yp,convert(varchar(10),a.TM,20) datadate
from st_rain_s a inner join
(select stcd,max(p8) h1yp,convert(varchar(10),TM,20) dt1 from
(
select stcd,p8,convert(varchar(10),TM,20) dt1 from st_rain_s
union all select stcd,p9,convert(varchar(10),TM,20) dt1 from st_rain_s union all select stcd,p10,convert(varchar(10),TM,20) dt1 from st_rain_s
union all select stcd,p11,convert(varchar(10),TM,20) dt1 from st_rain_s union all select stcd,p12,convert(varchar(10),TM,20) dt1 from st_rain_s
union all select stcd,p13,convert(varchar(10),TM,20) dt1 from st_rain_s union all select stcd,p14,convert(varchar(10),TM,20) dt1 from st_rain_s
union all select stcd,p15,convert(varchar(10),TM,20) dt1 from st_rain_s union all select stcd,p16,convert(varchar(10),TM,20) dt1 from st_rain_s
union all select stcd,p17,convert(varchar(10),TM,20) dt1 from st_rain_s union all select stcd,p18,convert(varchar(10),TM,20) dt1 from st_rain_s
union all select stcd,p19,convert(varchar(10),TM,20) dt1 from st_rain_s union all select stcd,p20,convert(varchar(10),TM,20) dt1 from st_rain_s
union all select stcd,p21,convert(varchar(10),TM,20) dt1 from st_rain_s union all select stcd,p22,convert(varchar(10),TM,20) dt1 from st_rain_s
union all select stcd,p23,convert(varchar(10),TM,20) dt1 from st_rain_s union all select stcd,p0,convert(varchar(10),TM,20) dt1 from st_rain_s
union all select stcd,p1,convert(varchar(10),TM,20) dt1 from st_rain_s union all select stcd,p2,convert(varchar(10),TM,20) dt1 from st_rain_s
union all select stcd,p3,convert(varchar(10),TM,20) dt1 from st_rain_s union all select stcd,p4,convert(varchar(10),TM,20) dt1 from st_rain_s
union all select stcd,p5,convert(varchar(10),TM,20) dt1 from st_rain_s union all select stcd,p6,convert(varchar(10),TM,20) dt1 from st_rain_s
union all select stcd,p7,convert(varchar(10),TM,20) dt1 from st_rain_s
) tb1 group by tb1.stcd
) b on b.stcd=a.stcd where a.stcd=@stcd and TM between @begin and @end
group by a.stcd,b.h1yp,convert(varchar(10),a.TM,20)
GO
提示:列名‘TM’无效。
相关推荐
IDEA出现找不到或无法加载主类的故障
资源下载链接为: https://pan.quark.cn/s/67c535f75d4c 在使用 IntelliJ IDEA(简称 IDEA)开发 Java 项目时,可能会出现“找不到或无法加载主类”的错误,这表明 IDEA 无法准确识别和执行程序入口即主类,原因多种多样,比如配置错误、Maven 设置不当或 Java 环境配置有误等。以下是一些常见原因及解决办法: 项目 JDK 配置:若 IDEA 未找到正确 JDK 版本,易出现此错误。需在 IDEA 的“Project Structure”里确认已指定合适 JDK。具体操作为点击“File” > “Project Structure” > “Platform Settings” > “SDKs”,查看是否添加并选中所需 JDK 版本。 模块源代码路径:在“Project Structure”中查看模块的“Sources”和“Test Sources”设置,主类应位于“Sources”目录下的“src/main/java”里,若位置不对,IDEA 可能无法识别其为主类。 主类定义:要确保主类有“public static void main(String[] args)”方法,这是 Java 应用程序入口,若无此方法,IDEA 无法找到主类。 Maven 配置:对于 Maven 项目,“pom.xml”文件中“<build><plugins> Maven 构建路径:查看 Maven 的“target”目录,看是否生成了正确 class 文件,若“classes”目录设置有误,会导致找不到主类。在“pom.xml”中,确保“<outputDirectory> 运行 / 调试配置:在 IDEA 中检查运行或调试配置,点击“Run” > “Edit Configurations”,看“Main Class”字段是否填写了正确主
小学数学数学故事思维乐趣谁统计错了
小学数学数学故事思维乐趣谁统计错了
找不到架构x86_64的符号
您必须将二进制文件作为链接器的输入。下次,您最好在问题中附加错误消息。
MATLAB图像错切_matlab_图像处理_水平错切_图像错切_
读入一幅图像,对其进行水平错切、垂直错切
按键精灵插件 后台多点找色 后台找图
按键精灵插件 后台多点找色 后台找图等等


疑难问题
