We just want to write some spatial queries for our PostGIS tables, but we can only write queries with geometry columni like (POINT(36 43). Assume that we have two columns like geom and name, we want write our queries with the point name.
select st_astext(geom) from table
where ST_DWithin (geom, 'POINT (36 43)', 100);
Any ideas about writing these kind of queries without using geometry?