开发者

What does it mean: SQL state: 42703 Context: Error occurred on dblink connection named "unnamed": could not execute query

开发者 https://www.devze.com 2023-01-02 12:31 出处:网络
I tried to create exactly the same but new table from old table in another databas开发者_StackOverflow社区e using dblink. This procedure used to worked last two times, but this time I got message:

I tried to create exactly the same but new table from old table in another databas开发者_StackOverflow社区e using dblink. This procedure used to worked last two times, but this time I got message: "SQL state: 42703 Context: Error occurred on dblink connection named "unnamed": could not execute query."

Anyone knows where is the problem or how to solve it? Please!


I encountered this problem and fixed it by using single quotes, rather than double quotes, for the string I was searching for:

select * from table where column = 'value';


Here is a list of possible causes:

http://www.sqlerror.de/db2_sql_error_-206_sqlstate_42703.html

Best to catch the query before it is executed, then you will be able to see what exactly the problem is. If you post it here, we can help you further.

0

精彩评论

暂无评论...
验证码 换一张
取 消