Jump to content
  • 0

escape_sql vise versa?


Lil Troll

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

Is there opposite of escape_sql? Like for example retrieve_sql so that i can minimize the use of variables like permanent ones. I cant figure out myself. (pity me noob) :(

Escape sql
Syntax:

escape_sql(<value>)
Description:

Converts the value to a string and escapes special characters so that it is 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(.@str$);	// Escaped string: John\'s Laptop

Or should i be sticking in variables because sometimes sql ingame is often slow.

Edited by Lil Troll
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

Escape SQL, doesn't put anything into SQL, it just enables us, to use Special Characters in our SQL Strings. What your looking for is:  query_sql"SELECT Blah blah blah",@var;

 

Special Characters: Anything not a Letter or a Number.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

Escape SQL, doesn't put anything into SQL, it just enables us, to use Special Characters in our SQL Strings. What your looking for is:  query_sql"SELECT Blah blah blah",@var;

 

Special Characters: Anything not a Letter or a Number.

Thanks sir! Im now enlightened I thougt there was a simplier version of select sql. :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...