mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
make mysql and oracle specific
This commit is contained in:
11
extra/jheidi/dropTable$mysql.ajl
Normal file
11
extra/jheidi/dropTable$mysql.ajl
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
WindowContext context = argObj("windowContext");
|
||||
String table = arg("tableToDrop");
|
||||
|
||||
DB db = context.get("db");
|
||||
|
||||
db.execute("drop table `" + context.get("currentDB") + "`.`" + table + "`");
|
||||
db.flushStatement("show tables from `" + context.get("currentDB") + "`");
|
||||
|
||||
|
||||
|
||||
11
extra/jheidi/dropTable$oracle.ajl
Normal file
11
extra/jheidi/dropTable$oracle.ajl
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
WindowContext context = argObj("windowContext");
|
||||
String table = arg("tableToDrop");
|
||||
|
||||
DB db = context.get("db");
|
||||
|
||||
db.execute("drop table " + context.get("currentDB") + "." + table);
|
||||
db.flushStatement("select * from all_tables where owner=upper('" + context.get("currentDB") + "')");
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user