SqlConnection.escapeLiteral

Return the given string suitably quoted to be used as a string literal in an SQL statement string. Embedded single-quotes and backslashes are properly doubled. Note that quote_literal returns null on null input.

@param literal input literal @return the quoted literal @throws SQLException if something goes wrong

interface SqlConnection
string
escapeLiteral
(
string literal
)

See Also

Meta