Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.
SET @TableRenameCommand = CONCAT( 'RENAME TABLE Audit_info.',databaseName,'_DBAudit_',current_tablelist ,' to Audit_info.',databaseName,'_DBAudit_', current_tablelist,' cutoff_at: ',now()); PREPARE stmt FROM @TableRenameCommand; EXECUTE stmt; DEALLOCATE PREPARE stmt;
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'cutoff_at: 2014-02-13 11:20:53' at line 1