|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Selece Query with Calling a function in Where clause |
« View previous topic :: View next topic » |
Author |
Message
|
Gemz |
Posted: Fri Dec 05, 2008 2:23 am Post subject: Selece Query with Calling a function in Where clause |
|
|
 Centurion
Joined: 14 Jan 2008 Posts: 124
|
Hi,
I am using WMB 6.1.0.0 and Oracle Spatial 10g R2 in Windows.
I am trying a select query with calling a function in WHERE clauses as follows :
SET Environment.Variables.ResultData[] = SELECT A.SHAPE,A.POSTCODE
FROM Database.{myschema}.OSMM.TWADL2 AS A, Database.{myschema}.OSMM.TWAREA AS B
WHERE B.TOID=Environment.Variables.toidRef
AND Database.{myschema}.SDO_WITHIN_DISTANCE(A.SHAPE, B.SHAPE, 'distance = 100')= 'TRUE';
In this 'SDO_WITHIN_DISTANCE' is a built in function in spatial database.
Wen i use this query i am getting 'Incorrect function or procedure name "SDO_WITHIN_DISTANCE" or argument count.' error.
Is it possible to call the function in Where clause ? .
-GemZ |
|
Back to top |
|
 |
mgk |
Posted: Fri Dec 05, 2008 2:53 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
Hi.
To call a specific Oracle function in the WHERE clause, you will have to use PASSTHRU.
Regards, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|