-
-
Save splee/4677465 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select count(*) | |
into @exists | |
from information_schema.tables | |
where table_schema = 'dbs_admin' | |
and table_name = 'dbs_auto_increment'; | |
set @qry = select if(@exists<0, | |
'rename table publisher.dbs_auto_increment to dbs_admin.dbs_auto_increment', | |
'select \'table exists\' status') as querystr; | |
prepare stmt from @qry; | |
execute stmt; | |
drop @exists; | |
drop @qry; | |
drop stm; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment