Possible Duplicate:
In Java, is there a way to write a string literal without having to escape quotes?
I want to get Oracle starttime with sql query. I use this SQL statement
SQL_Statement = "select to_char(startup_time, 'HH24:MI DD-MON-YY') "Startup time" from v$instance";
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?
Best wishes
P.S I use Java. When I try to run this SQL query:
select to_char(startup_time, 'HH24:MI DD-MON-YY') 'Startup time' from v$instance
I get this error:
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: