简体   繁体   中英

How to configure sql query shortcuts in SQL Workbench/J?

I want to get rid of writing a full sql syntax, like I'm using for years in PL/SQL Developer editor or SQL SERVER Management Studio.

Examples:

count1 = select count(1) from
counthaving = select count(1) from having count(1)>?
s* = select * from
w = where
to_date = to_date('','dd/mm/yyyy')
sc* = select count(*) from

Thanks

This is what macros are intended for.

You can define a macro as "expandable" by selecting the "Expand while typing" check box in the macro definition.

If you type the "name" of such a macro in the editor and use the tab expansion key, the text will be replaced with the text of the macro.

It's recommended to un-check the option "Include in menu" for those macros.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM