Home > Database > Mysql Tutorial > body text

Kettle空串问题

WBOY
Release: 2016-06-07 16:50:06
Original
1153 people have browsed it

今天使用Kettle发现一些问题,数据库是MySQL,需要将一个表的数据复制到本地库。

今天使用Kettle发现一些问题,数据库是MySQL,需要将一个表的数据复制到本地库。

表结构如下

Kettle如下

这么简单的需求,居然报错了。

按道理说,这个过程是没有空值的。因为源表字段设置都是not null,并且有默认值。

引起这个问题的原因是,,Kettle的作者是Oracle程序员。他引用的是Oracle的处理规则,结果MySQL数据库肯定悲剧了。

不过已经有了一个补救的措施。

在C:\Users\用户名\.kettle目录中找到kettle.properties文件,增加

KETTLE_EMPTY_STRING_DIFFERS_FROM_NULL=Y

重启Kettle即可。

--------------------------------------分割线 --------------------------------------

Ubuntu 14.04下安装MySQL

《MySQL权威指南(原书第2版)》清晰中文扫描版 PDF

Ubuntu 14.04 LTS 安装 LNMP Nginx\PHP5 (PHP-FPM)\MySQL

Ubuntu 14.04下搭建MySQL主从服务器

Ubuntu 12.04 LTS 构建高可用分布式 MySQL 集群

Ubuntu 12.04下源代码安装MySQL5.6以及Python-MySQLdb

--------------------------------------分割线 --------------------------------------

本文永久更新链接地址:

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!