I have a SQL statement like this and I want to preserve the same format while coding so as to maintain readability but unfortunately Java does not allow me to write a string in more than a line.... I want to write a query something like this...
[ January 05, 2006: Message edited by: Raghavan Chockalingam ]
posted 11 years ago
I have used a couple of things before:
1. Break up the string so your query can be across multiple lines of source code. For example:
2. Store the SQL in an external file. This is handy if you think you may want to change the SQL without rebuilding the class file.