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.

20 lines
491 B

  1. SET GLOBAL innodb_file_per_table=1;
  2. create table t1 (c1 int, c2 geometry not null, spatial index (c2))engine=innodb ROW_FORMAT=COMPRESSED;
  3. create procedure insert_t1(IN total int)
  4. begin
  5. declare i int default 1;
  6. while (i <= total) DO
  7. insert into t1 values (i, Point(i, i));
  8. set i = i + 1;
  9. end while;
  10. end|
  11. CALL insert_t1(70000);
  12. check table t1;
  13. Table Op Msg_type Msg_text
  14. test.t1 check status OK
  15. select count(*) from t1;
  16. count(*)
  17. 70000
  18. delete from t1;
  19. drop procedure insert_t1;
  20. drop table t1;