sql_list | R Documentation |
Format an atomic vector for use with a SQL 'IN' statements
sql_list(x, quote = TRUE, wildcard = FALSE)
x |
Atomic character or numeric vector |
quote |
Should each entry be surrounded with single quotes? |
wildcard |
Should each entry be surrounded with percent signs? Used for wildcard matching |
Sven Halvorson (svenpubmail@gmail.com)
paste(
'SELECT nonsense',
'FROM your_table',
'WERE nonsense LIKE ANY',
sql_list(letters[1:5], wildcard = TRUE),
';'
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.