You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT SUM((CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(Effect, ';', 1), ':', -1), 'kWh', 1) AS DECIMAL(10,1)) - CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(Effect, ';', -1), ':', -1), 'kWh', 1) AS DECIMAL(10,1))) ) AS 总节电量 FROM effect WHERE effect.ZuoYeQu like '%哈南油田%' AND effect.RiQi = "2025-02-24"这个sql在数据库里执行没有问题,但使用agent里的ExeSQl执行会报错:Can't query the correct data via SQL statement。
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
SELECT SUM((CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(Effect, ';', 1), ':', -1), 'kWh', 1) AS DECIMAL(10,1)) - CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(Effect, ';', -1), ':', -1), 'kWh', 1) AS DECIMAL(10,1))) ) AS 总节电量 FROM
effectWHEREeffect.ZuoYeQu like '%哈南油田%' ANDeffect.RiQi = "2025-02-24"这个sql在数据库里执行没有问题,但使用agent里的ExeSQl执行会报错:Can't query the correct data via SQL statement。Beta Was this translation helpful? Give feedback.
All reactions