You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
305 B

  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);
  7. City
  8. drop table t1;