main
new
SELECT * FROM `proc`
catalog varchar(64), t_schema varchar(64), t_name varchar(64), geometry_column varchar(64), t_srid int
begin set @qwe= concat('ALTER TABLE ', t_schema, '.', t_name, ' ADD ', geometry_column,' GEOMETRY REF_SYSTEM_ID=', t_srid); PREPARE ls from @qwe; execute ls; deallocate prepare ls; end
catalog varchar(64), t_schema varchar(64), t_name varchar(64), geometry_column varchar(64)
begin set @qwe= concat('ALTER TABLE ', t_schema, '.', t_name, ' DROP ', geometry_column); PREPARE ls from @qwe; execute ls; deallocate prepare ls; end