I am new to Corona and I have a set of 10 question and the input is in the range from 0-8. I have code it such that my numeric textbox will loop for i times (i = number of quest
You first need to ask yourself if you really need a SQL/SQLite database to store your data. I would say that 99% of the Corona apps would run as fine if you just store the data as a txt file (usually using JSON format).
If you still want to use SQLite, just take a look at the documentation for you. It provides example on how to execute queries (in your case, INSERT)
Link for Corona/Lua SQLite : https://docs.coronalabs.com/api/library/sqlite3/index.html