Home > Database > Mysql Tutorial > mysql python utf8

mysql python utf8

WBOY
Release: 2016-06-07 14:57:41
Original
1198 people have browsed it

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

Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template