Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【算术运算怎么实现】 #773

Open
CarsonYue opened this issue Oct 22, 2024 · 1 comment
Open

【算术运算怎么实现】 #773

CarsonYue opened this issue Oct 22, 2024 · 1 comment

Comments

@CarsonYue
Copy link

Description

查询结果加减乘除怎么实现

@TommyLemon
Copy link
Collaborator

TommyLemon commented Oct 26, 2024

@column:"(id + userId / 123):ret", // 必须用小括号包裹表达式
@raw:"@column" // 指定 @column 的值内包含原始 SQL 片段,例如其中的表达式 id + userId / 123

image
http://apijson.cn/api/?send=true&type=JSON&url=http%3A%2F%2Fapijson.cn%3A8080%2Fget&json={%22[]%22:{%22Comment%22:{%22@column%22:%22id%2CuserId%3B(id%20%2B%20userId%20%2F%20123)%3Aret%22,%22@raw%22:%22%40column%22,%22@explain%22:true}}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants