简体   繁体   中英

Can I save filter for columns at SQLDeveloper?

It's annoying to preview all columns all the time (especially when tables has a lot of) and even worse to create filter after every restart of SQLDeveloper? I can't see there any option to save them. Has someone workaround for this? My version is 4.1.0.17.

  1. List down the required columns in the select query. Compose the final query with only the columns you want in the select list. Save the query in your local as .sql file with a proper name of your choice. From next time open this file in SQL Worksheet. This would be applicable if you use the same query quite often.

  2. Alternatively, you could create a new table from existing table, specify the columns in the order you want to display first and keep the rest columns towards the end.

Create table_new as select From table_old;

Drop table tqble_old;

Rename table_new to table_old;

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