MySQL增删改查小语句总结

来源:互联网 发布:如何获取车流量数据 编辑:程序博客网 时间:2024/06/03 16:45
alter table product add trusteefee varchar(45) DEFAULT NULL;
alter table product add administrativefee varchar(45) DEFAULT NULL;
// 为product表增加字段

alter table product drop column fixfee;
alter table product drop column bankfee;
// 删除product表字段

update product set trusteefee='0.1%' where id='1';
update product set administrativefee='0.1%' where id='1';
// 更新product表数据
1 0
原创粉丝点击