Skip to content

Specify column data types when importing data #8

@mageddo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions