发布于 2017-05-16 13:25:15 | 143 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的Mysql教程,程序狗速度看过来!

Mysql关系型数据库管理系统

MySQL是一个开放源码的小型关联式数据库管理系统,开发者为瑞典MySQL AB公司。MySQL被广泛地应用在Internet上的中小型网站中。由于其体积小、速度快、总体拥有成本低,尤其是开放源码这一特点,许多中小型网站为了降低网站总体拥有成本而选择了MySQL作为网站数据库。


这篇文章主要介绍了Mysql的增删改查语句简单实现的相关资料,需要的朋友可以参考下

Mysql的增删改查语句简单实现

增加记录:


insert into tablename(...) values(...)
//如果增加的记录包括所有的列,则不需要写数据列表
insert into tablename values(...)

删除记录:


delete from tablename where condition ;

修改记录:


update tablename set xx=xx , xx=xx... where condition ;

alter table tablename set xx=xx , xx=xx... where condition ;

查询记录:


select (...) from tablename where condition ;

select * from tablename where condition ;

删除整个表:


drop table tablename ;

添加列:


alter table tablename add column columnname columntype ... ;

删除列:


alter table tablename drop column columnname ;

感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!



最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务