Menu

Escape sql

Brynner

Syntax

  • escape_sql (<value>);

Description

Converts the value to a string and escapes special characters so that it's
safe to use in query_sql(). Returns the escaped form of the given value.

Examples

[Set] .@str$, "John's Laptop"; [Set] .@esc_str$, escape_sql;
// Escaped string: John\'s Laptop

See Also

[Category:Script Command]


Related

Wiki: Set

MongoDB Logo MongoDB