Home >Database >Mysql Tutorial >向MySQL数据表插入行记录(INSERT)_MySQL

向MySQL数据表插入行记录(INSERT)_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-01 13:53:28943browse

  使用INSERT语句插入新数据

  语法:INSERT [INTO] tbl_name [(col_name,...)] VALUES (pression,...),…

  INSERT [INTO] tbl_name SET col_name=expression, ...

  让我们开始利用 INSERT 语句来增加记录,这是一个 SQL 语句,需要为它指定希望插入数据行的表或将值按行放入的表。INSERT 语句具有几种形式:

  可指定所有列的值:

  例如:

shell> mysql

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