Skip to content

Commit 682c8b4

Browse files
committed
feat: generate sql template add default time order
1 parent fc176de commit 682c8b4

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
@@ -13,6 +13,7 @@ template:
1313
- 如数据库引擎是 PostgreSQL、Oracle,则在schema、表名、字段名、别名外层加双引号;
1414
- 如数据库引擎是 MySQL,则在表名、字段名、别名外层加反引号;
1515
- 如数据库引擎是 Microsoft SQL Server,则在schema、表名、字段名、别名外层加方括号。
16+
- 如果生成SQL的字段内有时间格式的字段,若提问中没有指定,则默认按时间升序排序,且格式化为yyyy-MM-dd HH:mm:ss的格式,生成的格式化语法需要适配对应的数据库引擎。
1617
- 生成的SQL使用JSON格式返回:
1718
{{"success":true,"sql":"生成的SQL语句"}}
1819
- 问题与生成SQL无关时,直接回答:

0 commit comments

Comments
 (0)