Quotation marks can be nested in one of two ways. The first
method is to double the quotation marks in the nested string. For example:
NLS_DATE_FORMAT = '''Today is'' MM/DD/YYYY'
The second method is to alternate single and double quotation marks. For example:
NLS_DATE_FORMAT = '"Today is" MM/DD/YYYY'[@more@]
method is to double the quotation marks in the nested string. For example:
NLS_DATE_FORMAT = '''Today is'' MM/DD/YYYY'
The second method is to alternate single and double quotation marks. For example:
NLS_DATE_FORMAT = '"Today is" MM/DD/YYYY'[@more@]
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10599713/viewspace-1005018/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/10599713/viewspace-1005018/
本文介绍了在编程中如何正确使用嵌套引号的方法。主要讲述了两种方式:一种是在嵌套字符串中加倍引号;另一种是交替使用单引号和双引号。这两种方法能够帮助开发者在处理复杂字符串时避免引号冲突。
87

被折叠的 条评论
为什么被折叠?



