# restart
create table t1 (c1 int, c2 geometry not null, spatial index (c2))engine=innodb;
create procedure insert_t1(IN total int)
begin
declare i int default 1;
while (i <= total) DO
insert into t1 values (i, Point(i, i)); set i = i + 1;
end while;
end|
create procedure update_t1(IN total int)
begin
declare i int default 1;
while (i <= total) DO
update t1 set c2 = Point(i + 10000, i + 10000) where c2 = Point(i, i); set i = i + 1;
end while;
end|
CALL insert_t1(367);
COMMIT;
# restart
check table t1;
Table Op Msg_type Msg_text
test.t1 check status OK
drop table t1;
create table t1 (c1 int, c2 point not null, spatial index (c2))engine=innodb;
CALL insert_t1(367);
CALL update_t1(367); SET @poly1 = ST_GeomFromText('POLYGON((10000 10000, 10000 10350, 10350 10350, 10350 10000, 10000 10000))');
delete from t1 where ST_Contains(@poly1, c2);
COMMIT;
# restart
check table t1;
Table Op Msg_type Msg_text
test.t1 check status OK
select count(*) from t1;
count(*) 17
select c1, ST_astext(c2) from t1;
c1 ST_astext(c2) 351 POINT(1035110351) 352 POINT(1035210352) 353 POINT(1035310353) 354 POINT(1035410354) 355 POINT(1035510355) 356 POINT(1035610356) 357 POINT(1035710357) 358 POINT(1035810358) 359 POINT(1035910359) 360 POINT(1036010360) 361 POINT(1036110361) 362 POINT(1036210362) 363 POINT(1036310363) 364 POINT(1036410364) 365 POINT(1036510365) 366 POINT(1036610366) 367 POINT(1036710367)
drop procedure insert_t1;
drop procedure update_t1;
drop table t1;
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-10-08)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.