1. If it is single quotes, the following error appears:
DB2 INSERT into sales (region) values (')
db21034e This command is treated as SQL
Statement because it is not a valid command line Processor command. During SQL processing, it returns:
SQL0010N string constants that start with "'" do not have string end delimiters. sqlstate=42603
2. If it is a double quote, run the following command and then look at it with the Select command and find that the double quote is not displayed
DB2 INSERT into sales (region) VALUES (' ")
How do I handle this?
Answer: For questions that need to be inserted into the quote character, you can do so by using the following method:
1. If you need to enter single quotes, you can enter two single quotes consecutively, inserting a single quotation mark into the table, and the first single quotation mark will be used as an escape character, such as:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.