Blogger Information
Blog 34
fans 1
comment 0
visits 57171
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
mysql批量更新表名的前缀
Y的博客
Original
1069 people have browsed it

SELECT CONCAT( 'ALTER TABLE ', table_name, ' RENAME TO yc_', substring(table_name, 5), ';' ) sqlsFROM information_schema.tables Where table_name LIKE 'lm_%';


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post