SELECT substr(to_char(now_time,'yyyymmdd'),1,8),
SUM(nowbuywater_measure) AS total_buymeasure,
SUM(nowwritecard_measure) AS total_writemeasure,
SUM(BUYWATER_MONEY)+SUM(MONEY_SZYF)+SUM(MONEY_WU) AS total_buyprice
FROM ICEXCHANGE_INFO where operator_id= '100001'
group by substr(to_char(now_time,'yyyymmdd'),1,8)
now_time:date,其余是数字型,
这条语句问题在哪呢? 报的错是 无效数字
SUM(nowbuywater_measure) AS total_buymeasure,
SUM(nowwritecard_measure) AS total_writemeasure,
SUM(BUYWATER_MONEY)+SUM(MONEY_SZYF)+SUM(MONEY_WU) AS total_buyprice
FROM ICEXCHANGE_INFO where operator_id= '100001'
group by substr(to_char(now_time,'yyyymmdd'),1,8)
now_time:date,其余是数字型,
这条语句问题在哪呢? 报的错是 无效数字
SUM(nowbuywater_measure) AS total_buymeasure,
SUM(nowwritecard_measure) AS total_writemeasure,
SUM(BUYWATER_MONEY) + SUM(MONEY_SZYF) + SUM(MONEY_WU) AS total_buyprice
FROM ICEXCHANGE_INFO
where operator_id = 100001
group by to_char(now_time, 'yyyymmdd')
但不影响啊
你再确定下是不是有的字段非数值型的