1
drop table if exists t1;
2
create table t1(City VARCHAR(30),Location geometry);
3
insert into t1 values("Paris",GeomFromText('POINT(2.33 48.87)'));
4
select City from t1 where (select
5
intersects(GeomFromText(AsText(Location)),GeomFromText('Polygon((2 50, 2.5
6
50, 2.5 47, 2 47, 2 50))'))=0);