title: How to write SQL statement with quotes?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3034186/in-java-is-there-a-way-to-write-a-string-literal-without-having-to-escape-quote">In Java, is there a way to write a string literal without having to escape quotes?</a>  </p>
  </blockquote>
  
  
  
  <p>I want to get Oracle starttime with sql query. I use this SQL statement </p>
  
  <pre><code>SQL_Statement = "select to_char(startup_time, 'HH24:MI DD-MON-YY') "Startup time" from  v$instance";
  </code></pre>
  
  <p>There is a problem with the quotes when I try to write a code with this SQL statement. What is the proper way to write this SQL statement?</p>
  
  <p>Best wishes</p>
  
  <p>P.S I use Java. When I try to run this SQL query:</p>
  
  <pre><code>select  to_char(startup_time, 'HH24:MI DD-MON-YY') 'Startup time' from  v$instance
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>Error starting at line 1 in command:
  select  to_char(startup_time, 'HH24:MI DD-MON-YY') 'Startup time' from  v$instance 
  Error at Command Line:1 Column:50
  Error report:
  SQL Error: ORA-00923: FROM keyword not found where expected
  00923. 00000 -  "FROM keyword not found where expected"
  *Cause:    
  *Action:
  </code></pre>