Delphi single quotation marks used in string methods

Source: Internet
Author: User

can see the help of Delph, inside has this question detailed explanation:
a character string, also called a string literal or string constant, consists of a quoted string, a control string, or A combination of quoted and control strings. Separators can occur only within quoted strings.

a quoted string is a sequence of up to 255 characters from the extended ASCII character set, written on one line and E Nclosed by apostrophes. A quoted string with nothing between the apostrophes is a null string. The sequential apostrophes in a quoted string denote a single character, and namely an apostrophe. For example,

' BORLAND ' {BORLAND}//Character
' You'll see ' {You'll see}//Two ' connected together to represent one of the characters ' number.
"' {'} ibid.
' {null string}//null value
' {a space}//A space

Example:
SQL statement: Where usename like '% Zhang San% '
STR1: = ' where ' + FieldName + ' like ' + '% ' + searchbuffer + '% '

Delphi single quotation marks used in string methods

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.