1.mysql存储过程,可以实现动态表读取,满足较为复杂的业务逻辑 DROP PROCEDURE if exists p_get_car_trace; delimiter // CREATE PROCEDURE p_get_car_trace() begin ); ); set var_tabe_name = 'geom1'; set var_sql = concat_ws(' ', 'select id,AsText(geo) geo from ', var_tabe_name); set @…