多次将值插入同一列

时间:2016-01-31 14:38:54

标签: mysql sql

如果我想多次将数据插入同一列,如下所示:

INSERT INTO string_tbl(vchar_fld) VALUE ('abcd');
INSERT INTO string_tbl(vchar_fld) VALUE ('xyz');
INSERT INTO string_tbl(vchar_fld) VALUE ('QRSTUV');
INSERT INTO string_tbl(vchar_fld) VALUE ('qrstuv');
INSERT INTO string_tbl(vchar_fld) VALUE ('12345');

除了不同的数据之外,是否有比上述更有效的方法来编写相同的插入?

1 个答案:

答案 0 :(得分:2)

INSERT INTO string_tbl(vchar_fld) VALUES ('abcd'),('xyz'),('QRSTUV');