Home >Database >Mysql Tutorial >mysql 增删改查基本语句_MySQL

mysql 增删改查基本语句_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-27 14:12:301107browse

bitsCN.com

增:

insert

insert into 表名(字段1,字段2,字段3。。。。。。字段N) values(值1,值2,值3);

如果不申明插入那些字段,则默认所有字段。

在插入时注意,往哪个表增加,增哪个字段,每个字段各有什么值。

删:

delete

delete from 表名 where 表达式;

删除时注意 删除哪张表数据,删除哪些行.

 

改:

update

update 表名 set  字段1=值1,字段2=值2  .......字段N=值N where  表达式;

修改时注意 修改哪张表,修改哪几个字段,该什么值,在那几行生效。

 

查:

select

select * from 表名 where 表达式。

bitsCN.com
Statement:
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