mysql指定的一个字段后面添加一个字段
alter table newexample add address varchar(110) after stu_id;
mysql中更新多个字段值的方法
update 表名 set name=?,password=?.... where id=?
mysql模糊查询 LIKE 的写法
LIKE 后面跟 ‘%{ 关键字 }%’
select * from notes where title LIKE '%{$keywords}%'
mysql查看表结构(编码方式)
show create table 表名
mysql修改表的编码方式
alter table 表名 convert to character set utf8
mysql创建数据库(编码方式)
create database 表名 chartacter set=utf8
mysql 查看数据库编码方式
show create database 数据库名
mysql修改数据库(编码方式)
alter database 数据库名 character set=utf8;
mysql删除数据库
drop database 数据库名;