Is there any way I can write (copy-paste) nicely-formatted SQL queries in Java string literals using Eclipse?

前端 未结 7 1495
情深已故
情深已故 2020-12-29 05:43

When I wish to use SQL queries in Java, I usually hold them in final String variables. Now, when the string is too large, it goes out of page breadth, and we either have to

相关标签:
7条回答
  • 2020-12-29 06:07

    When you are in SQLDeveloper, select the query and use Ctrl + F7 to format it. Select it again and use Ctrl + Shift + F7 to advance format it, choose Clipboard for output destination, output type as desired type and click Apply. Now, paste it in Eclipse editor and see the difference.

    I'm using Version 3.1.07 of SQLDeveloper.

    0 讨论(0)
提交回复
热议问题