Specify column data types when importing data · Issue #8 · mageddo-projects/csv2jdbc · GitHub
Skip to content

Specify column data types when importing data #8

Open

Description

@mageddo

Giving the following example

copy a_table(name varchar(255), id bigint, creation_date timestamp) from '/tmp/csv.csv' with csv header;
  • Specify only the columns he wants to change the datatype from the default (varchar(1000))
  • Internally csv2j will make the cast

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions