sql_IN: Concatenate SQL IN statement

View source: R/database_functions.R

sql_INR Documentation

Concatenate SQL IN statement

Description

sql_IN will create an IN statement from a vector of values.

Usage

sql_IN(x, add_quotes = TRUE)

Arguments

x

A vector of values to create an IN statement with.

add_quotes

Whether to put single quotes around values.

Value

A sql_IN statement with single quotes around the values

Examples

my_in <- c("hello", "world")
sql_IN(my_in)

my_in2 <- c(1, 2, 3)
sql_IN(my_in2, FALSE)


mfidino/uwinutils documentation built on June 11, 2025, 1:49 p.m.