I’m working on a database and what I want to do is create a table with an ID (auto increment) and another column: “Number” (I realize it sounds useless but bear with me here please), and I need to fill this “Number” column with values from 1 to 180, each time adding 1 to the previous.
What would be a clever “automatic” way of doing that?
Create a table with the columns you want (ID,Number) and set ID to auto increment. Once your done, use a while to load up to 180.
Here is the CREATE TABLE
Here is the INSERT