I need to write a function such that it will have an insert statement
and this function should return the number of rows inserted into the table. How to do that?
My table name is my_table and suppose there is one column which is column1 and the insert statement is
"insert into my_table as select * from temp;"