forked from HerculesWS/Hercules
-
Notifications
You must be signed in to change notification settings - Fork 0
Escape sql
Mike Kao edited this page Jun 16, 2023
·
1 revision
- escape_sql(<value></value>);
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.
set .@str$, "John's Laptop"; set .@esc_str$, escape_sql(.@name$); // Escaped string: John\'s Laptop
Category:Script Command