I\'m looking for a way to do multiple row inserts when I\'m only inserting data for a single column.
Here is the example table:
+-------+-------------+--
I will advise you Don't put multiple values in a column. make a new table:
INSERT INTO table_name (id, name) VALUES (1, 'name1'), (1, 'name2'), (1, 'name3'), (1, 'name4');
your syntax is a bit off. put parentheses around each data "set" (meaning a single value in this case) that you are trying to insert.
INSERT INTO User_Roll(name) VALUES ('admin'), ('author'), ('mod'), ('user'), ('guest');