I am using PostgreSQL with PostGis. I execute the following request:
select st_geomfromtext('point(22 232)',432)
It works great. But now I want to take the value through a query. eg:
select st_geomfromtext('point((select x from data_name where id=1) 232)' , 432)
Here, data_name is some table that I use, and x stores some values. Now the request inside is processed as a string and the value is not returned.
Please help.
ERROR: syntax error at or near "select"
source share