将quartz的表,转为对应的大写

SELECT table_name  
FROM information_schema.tables  
WHERE table_schema = 'etl' AND table_name LIKE 'qrtz%';
ALTER TABLE `etl`.`qrtz_blob_triggers` RENAME TO  `etl`.`QRTZ_BLOB_TRIGGERS` ;
ALTER TABLE `etl`.`qrtz_calendars` RENAME TO  `etl`.`QRTZ_CALENDARS` ;
ALTER TABLE `etl`.`qrtz_cron_triggers` RENAME TO  `etl`.`QRTZ_CRON_TRIGGERS` ;
ALTER TABLE `etl`.`qrtz_fired_triggers` RENAME TO  `etl`.`QRTZ_FIRED_TRIGGERS` ;
ALTER TABLE `etl`.`qrtz_job_details` RENAME TO  `etl`.`QRTZ_JOB_DETAILS` ;
ALTER TABLE `etl`.`qrtz_locks` RENAME TO  `etl`.`QRTZ_LOCKS` ;
ALTER TABLE `etl`.`qrtz_paused_trigger_grps` RENAME TO  `etl`.`QRTZ_PAUSED_TRIGGER_GRPS` ;
ALTER TABLE `etl`.`qrtz_scheduler_state` RENAME TO  `etl`.`QRTZ_SCHEDULER_STATE` ;
ALTER TABLE `etl`.`qrtz_simple_triggers` RENAME TO  `etl`.`QRTZ_SIMPLE_TRIGGERS` ;
ALTER TABLE `etl`.`qrtz_simprop_triggers` RENAME TO  `etl`.`QRTZ_SIMPROP_TRIGGERS` ;
ALTER TABLE `etl`.`qrtz_triggers` RENAME TO  `etl`.`QRTZ_TRIGGERS` ;

你可能感兴趣的:(sql)