I have a set of SQL statements formatted like this:
INSERT INTO reports.workload (workload_id,event_time,event_type_id,agent_id) VALUES
(-42000,'2010-02-23 07:30:38.941436',1,NULL);
Right now, the VALUES tuple is aligned at the beginning with the root name of the column. However, I want the tuple elements to be aligned as well, for example:
INSERT INTO reports.workload (workload_id,event_time, event_type_id,agent_id) VALUES
(-42000, '2010-02-23 07:30:38.941436',1 ,NULL);
My elisp-fu and regexp-fu are moderate, but not enough to complete this task. How can i do this?
source
share