R/sql.R

Defines functions where_condition

Documented in where_condition

#' sql子项语句处理
#'
#' @param key 键
#' @param value 值
#' @param operator 比较符 
#'
#' @return 返回值
#' @export
#'
#' @examples
#' where_condition()
where_condition <- function(key='FPrdNumber',value='',operator='>=') {
  if(value==""){
    res =" "
  }else{
    res <- paste0(" and   ",key,"  ",operator," '",value,"' ")
  }
  return(res)
  
  
}
takewiki/tsdo documentation built on July 5, 2023, 10:57 p.m.