I am reading a table using SQLqruey function and saving it to a df. code is as below
table_data_query<-"select * from sample_data"
tables_data<- sqlQuery(cn, table_data_query,errors=TRUE,rows_at_time = 100,stringsAsFactors = FALSE, as.is = TRUE, na.string = "NULL", nullstring = "")
The varchar and char data type columns NULL values are reading as empty(nothing) when reading into df but with one column(int data type) NULL value is reading "NA"(text/string)into data frame
How to read int data type column NULL values as nothing.