Skip to content

Commit 7d89da6

Browse files
committed
fix: template
1 parent 74570ea commit 7d89da6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/template.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ template:
1111
- 根据表结构生成SQL语句,需给每个表名生成一个别名(不要加AS)。
1212
- SQL查询中不能使用星号(*),必须明确指定字段名.
1313
- SQL查询的字段名不要自动翻译,别名必须为英文。
14+
- SQL查询的字段若是函数字段,如 COUNT(),CAST() 等,必须加上别名
1415
- 计算占比,百分比类型字段,保留两位小数,以%结尾。
1516
- 生成SQL时,必须避免关键字冲突。
1617
- 如数据库引擎是 PostgreSQL、Oracle,则在schema、表名、字段名、别名外层加双引号;

0 commit comments

Comments
 (0)