In MySQL i want to add around 1000 rows into a table. With PostgreSQL there is this statement that can be used to add x rows in your table.
INSERT INTO table(int_col)
SELECT x.id
FROM generate_series(1, 1000) AS x(id);
I search for several solutions(like this one) and one of the options i to create a function with a loop. I don't fully understand how this works because i m very new to MySQL. The other option is to do this by hand with a insert statement like this.
insert into table(int_col)
values (1), (2), (3) etc etc.
But you can understand that this is way to much work for 1000 rows. I also dont have a txt or csv file with the data that i want to add.