<DIV>Hi Drew,</DIV> <DIV> </DIV> <DIV>thank you for your help Drew,</DIV> <DIV> </DIV> <DIV>But still i am not successful in this query. Modified query is as follows</DIV> <DIV> </DIV> <DIV>DATA "the_geom from (select alldsdivisions.the_geom as the_geom,alldsdivisions.gid as oid , <BR> alldsdivisions.dsd_n as dsd_n from alldsdivisions <BR> where alldsdivisions.dsd_n ='%qstring%')</DIV> <DIV> </DIV> <DIV>error mesage I get is as follows</DIV> <DIV> </DIV> <DIV>prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT dsd_n::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),oid::text from (select alldsdivisions.the_geom as the_geom,alldsdivisions.gid as oid , alldsdivisions.dsd_n as dsd_n from alldsdivisions where alldsdivisions.dsd_n ='Ambalanthota') AS selectedgs WHERE (Ambalanthota) and (the_geom &&
setSRID( 'BOX3D(181659.373889 74242.41425975,303213.047119 165407.66918225)'::BOX3D,-1) )' <BR><BR>Postgresql reports the error as 'ERROR: column "ambalanthota" does not exist '<BR></DIV> <DIV> </DIV> <DIV>here , "Ambalanthota" mean a value of coumn dsd_n of table alldsdivisions.</DIV> <DIV>can anybody help me to figure out a solution , pls?</DIV> <DIV><BR>thank you in advance,</DIV> <DIV> </DIV> <DIV>Nimalika<BR></DIV><p>
<hr size=1>Need a quick answer? Get one in minutes from people who know. Ask your question on
<a href="http://answers.yahoo.com/;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx">Yahoo! Answers</a>.