R/create_sql.R
create_sql.Rd
utility function to create a SQL statement based on passed arguments
create_sql(dataName, fieldName, fieldName2, dataType, defaultSqlStatement)
Character or numeric. value of argument passed
Character. Database fieldname name which has value = dataName
Character. Alternative field name for string values of dataName
Character. Formatting for the dataName
in the database
String. Select statement. (eg. "Select * from db")
String. SQL statement
if (FALSE) {
create_sql(dataName = "all",fieldName="svspp", fieldname2= "comname",
dataType = "%03d",defaultSqlStatement="select * from svdbs.svspecies_list")
}