fix: correct database query examples in templates

This commit is contained in:
ulleo
2026-06-17 16:37:24 +08:00
committed by ulleo
parent 4af99e0c45
commit a76f8e7f9b
8 changed files with 8 additions and 0 deletions
@@ -51,6 +51,7 @@ template:
COUNT("t1"."订单ID") AS "total_orders",
CONCAT(ROUND("t1"."折扣率" * 100, 2), '%') AS "discount_percent"
FROM "TEST"."SALES" "t1"
GROUP BY "t1"."订单ID", "t1"."金额", "t1"."折扣率"
LIMIT 100
</output-good>
</example>
+1
View File
@@ -52,6 +52,7 @@ template:
COUNT("t1"."订单ID") AS "total_orders",
TO_CHAR("t1"."折扣率" * 100, '990.99') || '%' AS "discount_percent"
FROM "TEST"."ORDERS" "t1"
GROUP BY "t1"."订单ID", "t1"."金额", "t1"."折扣率"
LIMIT 100
</output-good>
</example>
@@ -53,6 +53,7 @@ template:
COUNT(`t1`.`订单ID`) AS `total_orders`,
CONCAT(ROUND(`t1`.`折扣率` * 100, 2), '%') AS `discount_percent`
FROM `test`.`orders` `t1`
GROUP BY `t1`.`订单ID`, `t1`.`金额`, `t1`.`折扣率`
LIMIT 100
</output-good>
</example>
+1
View File
@@ -52,6 +52,7 @@ template:
COUNT(`t1`.`订单ID`) AS `total_orders`,
CONCAT(CAST(ROUND(`t1`.`折扣率` * 100, 2) AS STRING), '%') AS `discount_percent`
FROM `ods`.`orders` `t1`
GROUP BY `t1`.`订单ID`, `t1`.`金额`, `t1`.`折扣率`
LIMIT 100
</output-good>
</example>
@@ -52,6 +52,7 @@ template:
COUNT([o].[订单ID]) AS [total_orders],
CONVERT(VARCHAR, ROUND([o].[折扣率] * 100, 2)) + '%' AS [discount_percent]
FROM [Sales].[Orders] [o]
GROUP BY [o].[订单ID], [o].[金额], [o].[折扣率]
</output-good>
</example>
@@ -51,6 +51,7 @@ template:
COUNT(`t1`.`订单ID`) AS `total_orders`,
CONCAT(ROUND(`t1`.`折扣率` * 100, 2), '%') AS `discount_percent`
FROM `test`.`orders` `t1`
GROUP BY `t1`.`订单ID`, `t1`.`金额`, `t1`.`折扣率`
LIMIT 100
</output-good>
</example>
@@ -116,6 +116,7 @@ template:
COUNT("t1"."订单ID") AS "total_orders",
TO_CHAR("t1"."折扣率" * 100, '990.99') || '%' AS "discount_percent"
FROM "TEST"."ORDERS" "t1"
GROUP BY "t1"."订单ID", "t1"."金额", "t1"."折扣率"
WHERE ROWNUM <= 100
</output-good>
</example>
@@ -46,6 +46,7 @@ template:
COUNT("t1"."订单ID") AS "total_orders",
ROUND("t1"."折扣率" * 100, 2) || '%' AS "discount_percent"
FROM "TEST"."ORDERS" "t1"
GROUP BY "t1"."订单ID", "t1"."金额", "t1"."折扣率"
LIMIT 100
</output-good>
</example>