Learn R Programming

stacomirtools (version 0.6.0.1)

connect,RequeteODBCwheredate-method: connect method loads a request to the database and returns either an error or a data.frame

Description

connect method loads a request to the database and returns either an error or a data.frame

Usage

# S4 method for RequeteODBCwheredate
connect(object)

Arguments

object

an object of class RequeteODBCwheredate

Value

An object of class RequeteODBCwheredate

Examples

Run this code
# NOT RUN {
object<-new("RequeteODBCwheredate")
object@baseODBC<-get("baseODBC",envir=envir_stacomi)
object@select<- "select * from t_operation_ope"
object@datedebut=strptime("1996-01-01 00:00:00",format="%Y-%m-%d %H:%M:%S")
object@datefin=strptime("2000-01-01 00:00:00",format="%Y-%m-%d %H:%M:%S")
object@colonnedebut="ope_date_debut"
object@colonnefin="ope_date_fin"
object@and<-c("AND ope_dic_identifiant=1","AND ope_dic_identifiant=2")
object@order_by<-"ORDER BY ope_identifiant"
object@silent=FALSE
object<-connect(object) 
# }

Run the code above in your browser using DataLab