Skip to content

空值字段转换时异常问题 #186

@ghost

Description

比如两张表,连接查询时, info left join info_ext

`

CREATE TABLE info (
id int,
name varchar(32),
....
);

CREATE TABLE info_ext (
id int,
gender varchar(32),
age int,
....
);

`

连接查询结果中,右边的表 info_ext 有可能有空行,而 info_ext 对应的实体类字段 age 为整形非空值,
此时, select 会出现异常。

对于这种情况有没有更加方便些的处理方式?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions