backup.sql 242 B

1234
  1. set @table := concat('bak_company', '_', date_format(curdate(), '%y%m%d'),'_',time_format(current_time, '%H%i%s'));
  2. set @qry1 := concat('create table ',@table, ' select * from dbr_company');
  3. prepare run_query from @qry1 ;
  4. execute run_query ;