views:

61

answers:

1

JEE Project - Separating SQL from code: I have SQL in my sql.properties file like this .. on 4 lines.

emp_sql=select * \  
from employees \  
  where \   
name = 'JON' 

The loader sees only first line - rest of the lines are being ignored. what am I doing wrong. thanks.

+1  A: 

Check to make sure there are no blanks after the \ backslashes at the end of each line. A blank in the position cancels the effect of the backslash.

Jim Garrison
That worked - blanks were causing problem. thanks a lot.
If the answer worked for you, it's customary to "accept" it by clicking the checkmark at the left.
Jim Garrison
just accepted it. Didn't know that part. thanks again Jim.