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

mysql insert into 插入多条数据

WBOY
Release: 2016-06-01 09:57:14
Original
1382 people have browsed it

可以使用下面语句:

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

 

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template