当前位置:Gxlcms > mysql > mysqlpythonutf8

mysqlpythonutf8

时间:2021-07-01 10:21:17 帮助过:22人阅读

createdatabaseMrdefaultcharactersetutf8 createtableTABLE_NAMEdefaultcharset=utf8 setnamesutf8 无 select * from test;idname1...2...3...4...select * from test order by id desc;idname4...3...2...1...增加id列alter table TABLE_NAME add id intcre

create database Mr default character set utf8

create table TABLE_NAME default charset=utf8

set names utf8
<无>
select * from test;

id		name
1		...
2		...
3		...
4		...

select * from test order by id desc;

id		name
4		...
3		...
2		...
1		...



增加id列


alter table TABLE_NAME add id int




create database Mr default character set utf8

create table TABLE_NAME default charset=utf8

set names utf8

人气教程排行