Home >Database >Mysql Tutorial >mysql insert into 插入多条数据

mysql insert into 插入多条数据

WBOY
WBOYOriginal
2016-06-01 09:57:141403browse

可以使用下面语句:

<code class="language-sql">INSERT INTO tab_comp VALUES(item1, price1, qty1),(item2, price2, qty2),(item3, price3, qty3);</code>

 

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