Skip to content

case when 不能使用+-*/ #540

@jinqinn

Description

@jinqinn

select (case when a = 0 then b * 0.01 else b end) as f1 from index

a和b都是字段名,SQL执行会报错, 但是将b * 0.01改成b就没有问题

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