raja raja - 4 years ago 98
SQL Question

sql queries, java string

developing a web application using java. I have SQL queries with more than 40 lines ,using " , "+ at staring an end of query respectively. it is very difficult to convert string as query when i want to do any modifications in both both conversions

Answer Source

Can't you use PreparedStatement? If possible, use an ORM tool like hibernate. That will simplify your code (Of course there are other benefits).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download