Question
How to escape special characters in sql statements?

Answers

There are a number of special characters that needs to be escaped (protected), if you want to include them in a character string. Here are some basic character escaping rules:

The escape character () needs to be escaped as ().
The single quote (‘) needs to be escaped as (‘) or (“) in single-quote quoted strings.
The double quote () needs to be escaped as (“) or (““) in double-quote quoted strings.
The wild card character for a single character () needs to be escaped as (_).
The wild card character for multiple characters (%) needs to be escaped as (%).
The tab character needs to be escaped as (t).
The new line character needs to be escaped as (n).
The carriage return character needs to be escaped as (r).   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q What is difference of income tax act & company act depreciation?
  • Q How do i activate biodraw (pathworks)?
  • Q Khajuraho temples located in
  • Q Mention the issues to be considered while applying the techniques for code optimization.
  • Q What is a predicate in lisp?
  • Q Who decides the salary and allowances of the speaker of the Lok Sabha-
  • Q How will you know if the data has been successfully transferred? Where willyou check it
  • Q In what HG Wells novel does Dr Griffin sometimes appear
  • Q Explain how to debug a VBA code?
  • Q What phases are associated with a project?
  • Q Give appropriate programming terms for the A program in high-level or assembly-level language.