you'd need to learn SQL for such matters,
Here is a plain simple insert statement
INSERT INTO table_name (ColumnName1,ColumnName2) VALUES(num,"'"+name+"'");
Now the above statement should do what you are asking,make sure that columnName1 etc are replaced by the column names in the table.
If you don't know any SQL then you first need to get a book or read some tutorials on line, google usualy is a life saver.