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 Recover a Dropped Table in Oracle? |
☺ | What Happens to Indexes If You Drop a Table? |
☺ | What Is Input Buffer in SQL*Plus? |
☺ | What Is the Relation of a User Account and a Schema? |
☺ | How To Turn On or Off Recycle Bin for the Session? |
Top DB Oracle Categories
☺ | Oracle PL-SQL Interview Questions. |
☺ | Oracle DBA Interview Questions. |
☺ | Oracle D2K Interview Questions. |
☺ | OCI Interview Questions. |
☺ | Oracle RMAN Interview Questions. |