Importing from CSV - save empty string as null

Hi,

Say I have the following table.

CREATE TABLE Test
(
description VARCHAR(255) NULL,
title VARCHAR(255) NULL
);

How do I import from CSV to get the empty column values as null using the import from CSV feature?

 

0

Hi,

You need to specify default value NULL:


Thank you.

0

Thanks Vasily but that didn't do it - the data is still saved as empty string.

0

请先登录再写评论。