I want to insert some values to the table, there is an order such as 1,2,3….n
Insert Into table_name VALUES ( '1', 'A' )
Insert Into table_name VALUES ( '2', 'AA' )
Insert Into table_name VALUES ( '3', 'AAC' )
Insert Into table_name VALUES ( '.', '....' )
Insert Into table_name VALUES ( '.', '....' )
Insert Into table_name VALUES ( 'n', '....' )
How can I formulate this INSERT statement?
The usual way to do this is to select the values to insert from somewhere else:
If you have to use a
loopin SQL you’re doing it wrong.SQL works with sets.