VB Oracle Crystal Reports日期问题 [英] VB Oracle Crystal Reports date problem
问题描述
大家好
rr.SQLQuery =" select * from EXPORT where to_date(PLACEMENTDATE,''DD / MM / YYYY'')< TO_DATE(''"& Format(" 17/08 / 2007"," YYYY / MM / DD")&"'',''YYYY / MM / DD'')"
执行上述querry时获得运行时错误2053 vb oracle8和crystal report。请帮我解决这个问题。
Renjith
Hi all
rr.SQLQuery = "select * from EXPORT where to_date(PLACEMENTDATE, ''DD/MM/YYYY'') < TO_DATE(''" & Format("17/08/2007", "YYYY/MM/DD") & "'', ''YYYY/MM/DD'') "
while executing the above querry im getting runtime error 2053 vb oracle8 and crystal report. Please help me to solve this urgent.
Renjith
推荐答案
在数据库级别解析sql查询,从SQL字符串中删除格式函数。尝试使用仅oracle语法。
The sql query is parsed at database level ,remove the format function from the SQL string . Try to use oracle only syntax.
在数据库级解析sql查询,删除格式函数来自SQL字符串。尝试使用仅oracle语法。
The sql query is parsed at database level ,remove the format function from the SQL string . Try to use oracle only syntax.
我已经尝试过以下sql,但同样的错误,请帮助
rr.SQLQuery =" select *来自EXPORT,其中to_date(PLACEMENTDATE,''YYYY / MM / DD'')< TO_DATE(''200/17/10'',''YYYY / MM / DD'')"
I already tried with following sql , but the same error , please help
rr.SQLQuery = "select * from EXPORT where to_date(PLACEMENTDATE, ''YYYY/MM/DD'') < TO_DATE(''200/17/10'', ''YYYY/MM/DD'') "
请发布错误编号的确切错误消息。
Kindly post the exact error message with error number.
这篇关于VB Oracle Crystal Reports日期问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!