Skip to content

Mixed case table columun headings #169

Answered by lovasoa
lozdown asked this question in Q&A
Discussion options

You must be logged in to vote

Hello and welcome to SQLPage !
You can rename table headings however you want by using as:

select 'table' as component;
select my_column_1 as "My Column 1", my_other_column as "My Other Column";

If you have a lot of columns, you can use the css top-level property of the shell component to apply a custom style to your table:

style.css :

th {
  text-transform: capitalize !important;
}

page.sql

select 'shell' as component, 'style.css' as css;

select 'table' as component;
select * from my_table;

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lozdown
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
2 participants