Oracle Database 10g PL/SQL Programming-Terminology

Source: Internet
Author: User

Here, we will talk about the processing of all nouns in Oracle10g.

The following string contains all nouns in one of the words.

Begin
Dbms_output.put_line ('1' | 'nimeng's dog ');
End;

Execution error: ORA-01756: the string in the brackets does not end properly

This error is caused by improper processing of all nouns. It is unclear where the string ends. For all versions of oracle, two single quotation marks can be used at all vertices to avoid this problem.

Example:

Begin
Dbms_output.put_line ('1' | 'nimeng's dog ');
End;
To make it easier for people to handle single quotes and double quotation marks when using all nouns, Oracle10g introduces a new syntax, q '[]'. The Arc in it represents the custom separator. The following example lists several different methods to deal with all nouns:

Begin
Dbms_output.put_line ('1' | 'nimeng's dog ');
Dbms_output.put_line ('2' | Q' [nimeng's dog] ');
Dbms_output.put_line ('3' | Q '! Nimeng's dog! ');
Dbms_output.put_line ('4' | Q' <nimeng's dog> ');
Dbms_output.put_line ('5' | Q' % nimeng's dog % ');
End;

For more information about Oracle, see Oracle topics page http://www.bkjia.com/topicnews.aspx? Tid = 12

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.