Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_columns_in_table for numeric types #701

Closed
drewbanin opened this issue Mar 21, 2018 · 0 comments
Closed

get_columns_in_table for numeric types #701

drewbanin opened this issue Mar 21, 2018 · 0 comments
Labels
bug Something isn't working redshift

Comments

@drewbanin
Copy link
Contributor

This function does not account for the precision of numeric types. We should do something like:


select
    table_schema,
    column_name,
    data_type,
    character_maximum_length,
    '(' || numeric_precision || ', ' || numeric_scale || ')' as numeric_size

from information_schema.columns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working redshift
Projects
None yet
Development

No branches or pull requests

1 participant