Learn R Programming

queryparser (version 0.3.2)

squish_sql: Squish a SQL query or SQL expression

Description

Replaces every unquoted run of whitespace characters with a single space and removes all line comments (--) and block comments (/* */). Whitespace and comment marks within quotes are not modified.

Usage

squish_sql(x)

Value

a character string containing the squished query or expression with comments removed

Arguments

x

a character string containing a SQL query or expression