1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
SELECT id,GROUP_CONCAT(sub_id) FROM `group_test` GROUP BY id;
ALTER DATABASE blog DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
show create table(database) tablename(dbname)
ALTER table test DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
mysqldump -u root -p > d:/1.sql
select * from table limit (页码-1)*每页记录数,每页记录数
CREATE DATABASE `blog` CHARACTER SET 'utf8' COLLATE 'utf8_general_ci';
show variables like "%char%";
SET character_set_client='utf8'; SET character_set_connection='utf8'; SET character_set_results='utf8';
SHOW FULL COLUMNS FROM object;
select * from information_schema.innodb_trx;
show processlist;
show full processlist;
|