存储过程中的 prepare

 

set @ins := concat('replace into ',@tbl,'_archive select * from ',@tbl,' where ',@col,' < ',@plw);
prepare instmnt from @ins;
execute instmnt;
posted on 2013-01-16 10:14  思静  阅读(777)  评论(0)    收藏  举报