DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: How to get ' symbol in the output of a sql.

  1. #1
    Join Date
    Dec 2000
    Posts
    40
    Hello,

    I was trying to generate the output of an sql command as follows:

    alter database backup controlfile to 'd:\oracle\bkpctl.ora';

    I issued the command as follows:

    SQL> SELECT 'ALTER DATABASE BACKUP CONTROLFILE TO '||'''||'D:\ORACLE\BKP.CTL'||''' FROM DUAL;

    We have tried using the escape charecter and other alternatives... but we have not found the solution yet.

    Any help is appreciated..
    Thanks..
    Shailender

  2. #2
    Join Date
    May 2000
    Location
    ATLANTA, GA, USA
    Posts
    3,135
    SELECT 'ALTER DATABASE BACKUP CONTROLFILE TO '||chr(39)||'D:\xx'||chr(39) FROM DUAL;

  3. #3
    Join Date
    Nov 2000
    Posts
    212
    Type:

    SELECT 'ALTER DATABASE BACKUP CONTROLFILE TO ''D:\ORACLE\BKP.CTL'' FROM DUAL;




  4. #4
    Join Date
    Dec 2000
    Posts
    40
    Thank you verymuch selvan

    ms_reddy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width