I have a vector with table names:
table_names <- c("table1", "table2", "table3", "table4")
I want to query all this tables with limit 100 using for loop like this:
for (val in table_names){
my_query = pastge0("SELECT * FROM", val, " LIMIT 100")
dbGetQuery(con, my_query)
As you see this looping creates 4 querys and 4 tables. However I want those tables to be named. How to get these for tables?