Plugin 4 FAR Manager to execute SQL Commands to all kind of databases that has JDBC Driver.
This Plugin wrote I - George Imnaishvili, for making own life easyer ;) and hope your's too =)
(tested on MySQL & Oracle)

This Plugin is Free 4 all... 

  Plugin is written in C++ language in Cobmination with Java. 
  in C++ is writen part that uses FAR API.
  in Java is writen part that is connecting to DataBase and executes query.

This plugin requires Java Runtime Environment installed on machine.
Pluging can work with russian encoding (Cp1251) & show it as Cp866 (DOS)

You can write many blocks of sql if you will separate them by "/"

Installation:
1. Copy dir "runsql" in your far Plugins dir (...\FAR\Plugins)
2. Open for editing add.reg and enter full path to this plugin for "Dir"
3. Run add.reg
4. Restart Far.

Configuration:
1. in Far press F11 & chose runsql(or press x) 
2. in Menu chose Configuration -Configuration file will open
3. Configure Servers.. as shown in example

FullValues - Show full results
OneLine  - Write result in one line(remove \r & \n)

If you need to work with other DB:
1. Find and download JDBC Driver for your DB
2. Replace Oracle.zip or MySql.jar 
3. change runsql Configuration.

Usage:
1. open any file with sql for edit & press CTRL+X
2. place cursor at file containing SQL & press CTRL+X

if you want to echo in BEGIN..END block then use ? variable.. for example:
"BEGIN ?:=CLIENTS.GETLIST(123); END;"

That's it! =)

George Imnaishvili
xgio@mail.ru