I have insert statements like below
INSERT INTO KeyValue (id, key, value) VALUES (101, 'color', 'green');
INSERT INTO KeyValue (id, key, value) VALUES (102, 'color', 'green');
INSERT INTO KeyValue (id, key, value) VALUES (103, 'color', 'green');
Is there a way to align the column names and values so that it is easy to read the values (value is beneath the column name)?
Like
INSERT INTO KeyValue (id, key, value)
VALUES (101, 'color', 'green');
INSERT INTO KeyValue (id, key, value)
VALUES (102, 'color', 'green');
INSERT INTO KeyValue (id, key, value)
VALUES (103, 'color', 'green');
Is there a tool for this? Ok with any SQL, shell, python, regex trick.