我使用DBeaver作为我的主要IDE来查询多个数据库。当我查询表时,它会自动生成一个包含所有列的长选择语句。
当我进行更复杂的查询时,这样做变得非常繁琐和难以阅读。我希望将选择值分别显示在不同的行而不是一个长字符串中。
有没有一种简单的方法(例如使用Notepad ++或Sublime Text)来分解查询(在逗号后换行)?
举个例子,
select name, address, city, state, country, zip_code, birthday, membership_type
from customers
到
select
name,
address,
city,
state,
country,
zip_code,
birthday,
membership_type
from customers