Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

select concat alter table mysql

mysql -B -N --user=user --password=secret -e "SELECT distinct CONCAT( 'alter table ', TABLE_SCHEMA, '.', TABLE_NAME, '  CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;' ) FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = 'DBname';" > alter.sql
Source by serverfault.com #
 
PREVIOUS NEXT
Tagged: #select #concat #alter #table #mysql
ADD COMMENT
Topic
Name
6+2 =