I have an existing table with which I would like to do the equivalent of the following:
insert into the_table set col0=1, col1=0, col2=0;
insert into the_table set col0=2, col1=0, col2=0;
insert into the_table set col0=3, col1=0, col2=0;
...
...
insert into the_table set col0=255, col1=0, col2=0;
Because this is what I will do interactively over and over again, I would like to know how to reduce it to one operator and stuff it through the console so often.
EDIT:
Typing text on the console is not realistic:
insert into the_table (col1, col2, col3) values (0,0,0),(1,0,0)....(255,0,0);
Thank.
source
share