set-valued function called in context that cannot accept a set
2009-03-14 20:16
204 查看
今天在C#中调PostgreSql中的函数,弄了很久,老是出一些奇怪的错误,其中“
set-valued function called in context that cannot accept a set
”最常见,试了许久总算找到了正确方法。
在数据库里执行函数,可以写“select funcitonname();”也可以写“select * from functionname()”
按理到数据库里也可以使用以上两种,可是第一种写法却遇上了以上错误,而用第二种则正确执行。暂时还没搞懂。
set-valued function called in context that cannot accept a set
”最常见,试了许久总算找到了正确方法。
在数据库里执行函数,可以写“select funcitonname();”也可以写“select * from functionname()”
按理到数据库里也可以使用以上两种,可是第一种写法却遇上了以上错误,而用第二种则正确执行。暂时还没搞懂。
相关文章推荐
- The method or function that was called cannot be used in the manner requested.
- kettle Cannot find function setValue in object
- Given constant integers x and t, write a function that takes no argument and returns true if the function has been called x number of times in last t secs.
- 错误:Cannot access session scope in page that does not participate in any session
- Cannot make a static reference to the non-static method setInAnimation(Animation) from the type View
- Android录制视频报错setVideoSize called in a invalid state 1
- Cannot use this in a static context
- vuejs路由使用的问题Error in render function: "TypeError: Cannot read property 'matched' of undefined"
- java.lang.IllegalStateException:Cannot add header view to list==setAdapter has already been called.
- warning C4819: The file contains a character that cannot be represented in the current code page
- QObject: Cannot create children for a parent that is in a different thread.
- svn遇到“Cannot accept non-LF line endings in 'svn:log' property”而无法提交时
- 奇怪的SVN报错: Cannot accept non-LF line endings in 'svn:log' property
- 【转载】PHP使用empty检查函数返回结果时报Fatal error: Can't use function return value in write context的问题
- Solve Error : Undefined function or variable ‘setInitialWorkingFolder’. Error in matlabrc (line 197)
- curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in
- An attempt was made to set a report parameter that is not defined in this report
- Listview:Cannot add header view to list -- setAdapter has already been called
- “BUG: sleeping function called from invalid context at ......”(might_sleep函数说明)
- Call to undefined function set_magic_quotes_runtime() in /opt/app/apache/install/index.php:12 Stack