How To Write Text Literals in Oracle?
Submitted by: AdministratorThere are several ways to write text literals as shown in the following samples:
SELECT 'globalguideline.com' FROM DUAL -- The most common format
globalguideline.com
SELECT 'It''s Sunday!' FROM DUAL -- Single quote escaped
It's Sunday!
SELECT N'Allo, C''est moi.' FROM DUAL -- National chars
Allo, C'est moi.
SELECT Q'/It's Sunday!/' FROM DUAL -- Your own delimiter
It's Sunday!
Submitted by: Administrator
SELECT 'globalguideline.com' FROM DUAL -- The most common format
globalguideline.com
SELECT 'It''s Sunday!' FROM DUAL -- Single quote escaped
It's Sunday!
SELECT N'Allo, C''est moi.' FROM DUAL -- National chars
Allo, C'est moi.
SELECT Q'/It's Sunday!/' FROM DUAL -- Your own delimiter
It's Sunday!
Submitted by: Administrator
Read Online Oracle Database Job Interview Questions And Answers
Top Oracle Database Questions
☺ | How To Write Date and Time Interval Literals in Oracle? |
☺ | How To View the Dropped Tables in Your Recycle Bin? |
☺ | How Much Memory Your 10g XE Server Is Using? |
☺ | How Run SQL*Plus Commands That Are Stored in a Local File? |
☺ | What Happens to Indexes If You Drop a Table? |
Top DB Oracle Categories
☺ | Oracle PL-SQL Interview Questions. |
☺ | Oracle DBA Interview Questions. |
☺ | Oracle D2K Interview Questions. |
☺ | OCI Interview Questions. |
☺ | Oracle RMAN Interview Questions. |