Mysql的增删改查语句
2016-10-27 23:08
330 查看
增加记录:
删除记录:
修改记录:
查询记录:
删除整个表:
添加列:
删除列:
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 ;
相关文章推荐
- MYSQL的常用命令和增删改查语句和数据类型
- MYSQL的常用命令和增删改查语句
- MySQL增删改查语句
- MYSQL的常用命令和增删改查语句和数据类型
- MYSQL的常用命令和增删改查语句和数据类型
- MYSQL的常用命令和增删改查语句和数据类型
- MYSQL的常用命令和增删改查语句和数据类型
- MYSQL的常用命令和增删改查语句和数据类型
- Mysql的增删改查语句
- MySQL 入门基础语句(增删改查)
- MYSQL的常用命令和增删改查语句和数据类型
- MYSQL的常用命令和增删改查语句和数据类型
- MYSQL的常用命令和增删改查语句和数据类型
- MYSQL的常用命令和增删改查语句和数据类型
- MYSQL的常用命令和增删改查语句和数据类型
- mysql的常用命令和增删改查语句
- [置顶] Android,java,php开发最基本的知识,mysql sqlite数据库的增删改查代理,sql语句
- mysql增删改查基础语句
- MYSQL的常用命令和增删改查语句和数据类型
- mysql增删改查语句