130

Is there any simple SQL editor in Eclipse? Or do I need to find a simple SQL editor plugin for Eclipse?

By simple I mean, the editor does NOT connect to any DB, does syntax highlighting and preferably formatting sql is a bonus.

3
  • This is what you are looking for: gstaff.org/colorEditor
    – rtxndr
    Dec 24, 2015 at 11:57
  • As the time of the creation of the question were the requests for a software not yet forbidden. The question should be set to a "historical significance only", and not closed. Thus, I voted to reopen.
    – peterh
    Apr 1, 2016 at 10:47
  • Since 2019-03-14 there is standalone and very simple plugin available at eclipse marketplace: marketplace.eclipse.org/content/sql-editor - it's just for editing SQL files, syntax highlighting and contains an experimental sql formatter. So exactly what was asked for.
    – de-jcup
    Apr 7, 2020 at 7:49

6 Answers 6

144

for reference to add sql syntax highlighting / coloring to eclipse you can install Data tools platform extender sdk from "install new software", under Database Development

or enter site location directly http://download.eclipse.org/datatools/updates

9
  • 1
    simple as it's needed :)
    – kuba
    Mar 30, 2011 at 8:56
  • 2
    "Data tools platform extender sdk" contains a SQL Editor with Syntax Highlighting which works great for me. +1 Ben K Sep 1, 2011 at 8:53
  • 8
    By default (on Kepler, at least), this plug in opens SQL files using the SQL File Editor, which includes connection bloat. It does also include SQL Editor, which is the lightweight version, that you can easily set as the default editor.
    – user1236508
    May 2, 2014 at 18:40
  • 1
    It seems to be garbage. It's not clear which dialect is supported, but I have a feeling that only the very basic is part of this plug-in (plus some irrelevent features which I can't use). Also it doesn't highlight trigger or PL/SQL related keywords. Sep 8, 2017 at 11:14
  • 1
    @All - download.eclipse.org/datatools/updates - This link doesn't work at all now.
    – Prateek
    Jul 4, 2019 at 11:07
23

This Eclipse SQL Editor seems very lightweight. It only does syntax highlighting and provides an outline view. As of now the author is planning to eventually add code folding and completion, but those two features are still on the todo list.

5
  • I tried both others mentioned in answers here and both were bloated, slow, and worst of all, didn't work at all for me. This one is tiny, a breeze to install, and just works. Bravo. Feb 22, 2011 at 15:30
  • 1
    How do I install this plug-in? So far I have tried copying blog.debertshaeuser.com/uploads/… to %eclipse%/dropins, %eclipse%/plugins, %eclipse%/dropins/plugins and %eclipse/dropins/SQLEditor/eclipse/plugins but SQLEditor does not show up in the list of installed plug-ins. I am using Eclipse Galileo version 20100218-1602 Mar 27, 2011 at 6:09
  • If you too are unable to install the plugin then take a look at stackoverflow.com/questions/6223969/… Jun 6, 2011 at 6:23
  • 2
    copy the .jar-file into the eclipse/plugin/ folder and after restarting eclipse, .sql-files are connected to this editor. (eclipse indigo)
    – sinini
    Jun 20, 2012 at 11:56
  • If you're looking for auto-indentation and syntax highlighting in a light editor, this fits the bill perfectly. Many thanks for the recommendation.
    – KomodoDave
    Aug 20, 2012 at 11:39
10

Use Toad eclipse-extension (community edition), you will get almost everything you want in an SQL editor. Search for 'toad' in eclipse market place. It has very good Oracle, MySQL and PostgreSQL support.

Take a look at Installation instructions and screenshots.

Alternatively, there is DBeaver (very good in my experience and support almost all DB's) which is built on eclipse platform and available as standalone and eclipse plugin.

1
  • they no longer offer an eclipse plugin...
    – bernstein
    Oct 29, 2018 at 15:10
7

The eclipse SQLExplorer plugin seems light enough, and comes with a basic SQL editor (but no "format" option):

alt text


The official DTP DataTool Project is much complete, but have also its own editor:

DTP Editor

1
  • SQLExplorer is the nicest SQL plugin I have found so far, and it's pretty lightweight. However, it only does syntax highlighting when you are connected to a DB.
    – user1919238
    Jan 23, 2015 at 9:55
4

QuantumDB is also a lightweight option that I really liked.

http://quantum.sourceforge.net/

1
  • abandonware, last release is from 2011
    – bernstein
    Oct 29, 2018 at 15:11
3

Just found DBeaver : http://dbeaver.jkiss.org/

looks good, plenty of features, support mssql (which I need in the moment :) ... I'll give it a try ...

1
  • DBeaver is great for people wanting to have a full DB tool. But as a plugin it has some different behaviours to standard eclipse (e.g. its SQL editor does handle standard shortcuts like CTRL + SHIFT + UP different) . Also the toolbar is extreme changing when scope changes to sql parts - at least for myself it make much "noise". So I use DBeaver standalone and use SQL Editor plugin (see marketplace.eclipse.org/content/sql-editor ) inside eclipse for SQL files. It's lightweight and works fine.
    – de-jcup
    Nov 13, 2019 at 9:37

Not the answer you're looking for? Browse other questions tagged or ask your own question.