Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/templates/sql_examples/AWS_Redshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ template:

limit_rule: |
<rule>
使用 LIMIT 或 FETCH FIRST 限制行数(Redshift 兼容 PostgreSQL)
当需要限制行数时,必须使用 LIMIT 或 FETCH FIRST 来限制行数(Redshift 兼容 PostgreSQL)
<note>
1. 标准写法:LIMIT 100
2. 可选写法:FETCH FIRST 100 ROWS ONLY
Expand Down
2 changes: 1 addition & 1 deletion backend/templates/sql_examples/ClickHouse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ template:

limit_rule: |
<rule>
行数限制使用标准SQL语法:
当需要限制行数时,必须使用标准的LIMIT语法
<note>
1. 标准写法:LIMIT [count]
2. 分页写法:LIMIT [count] OFFSET [start]
Expand Down
2 changes: 1 addition & 1 deletion backend/templates/sql_examples/DM.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ template:

limit_rule: |
<rule>
行数限制使用达梦兼容语法:
当需要限制行数时,必须使用达梦兼容的语法
<note>
1. 标准写法:LIMIT [count]
2. 分页写法:LIMIT [offset], [count] 或 LIMIT [count] OFFSET [start]
Expand Down
2 changes: 1 addition & 1 deletion backend/templates/sql_examples/Doris.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ template:

limit_rule: |
<rule>
行数限制使用标准SQL语法:
当需要限制行数时,必须使用标准的LIMIT语法
<note>
1. 标准写法:LIMIT [count]
2. 分页写法:LIMIT [count] OFFSET [start]
Expand Down
2 changes: 1 addition & 1 deletion backend/templates/sql_examples/Elasticsearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ template:

limit_rule: |
<rule>
行数限制必须使用标准SQL语法:
当需要限制行数时,必须使用标准的LIMIT语法
<note>
1. 首选:`LIMIT [count]`
2. 分页:`LIMIT [count] OFFSET [start]`
Expand Down
2 changes: 1 addition & 1 deletion backend/templates/sql_examples/Kingbase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ template:

limit_rule: |
<rule>
行数限制使用标准语法:
当需要限制行数时,必须使用兼容Kingbase的语法
<note>
1. 标准写法:LIMIT [count]
2. 分页写法:LIMIT [count] OFFSET [start]
Expand Down
2 changes: 1 addition & 1 deletion backend/templates/sql_examples/Microsoft_SQL_Server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ template:

limit_rule: |
<rule>
行数限制使用标准SQL语法
当需要限制行数时,必须使用 Microsoft SQL Server 的SQL语法
<note>
1. 标准写法:TOP [count]
2. 分页写法:OFFSET [start] ROWS FETCH NEXT [count] ROWS ONLY
Expand Down
2 changes: 1 addition & 1 deletion backend/templates/sql_examples/MySQL.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ template:

limit_rule: |
<rule>
行数限制使用标准SQL语法:
当需要限制行数时,必须使用标准的LIMIT语法
<note>
1. 标准写法:LIMIT [count]
2. 分页写法:LIMIT [offset], [count] 或 LIMIT [count] OFFSET [start]
Expand Down
4 changes: 3 additions & 1 deletion backend/templates/sql_examples/Oracle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ template:

limit_rule: |
<rule>
使用 ROWNUM 或 FETCH FIRST 限制行数(Oracle 12c+)
当需要限制行数时:
1. 12c以下版本必须使用ROWNUM语法
2. 12c+版本推荐使用FETCH FIRST语法
<note>
1. 传统写法:WHERE ROWNUM <= 100
2. 现代写法:FETCH FIRST 100 ROWS ONLY
Expand Down
2 changes: 1 addition & 1 deletion backend/templates/sql_examples/PostgreSQL.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ template:

limit_rule: |
<rule>
使用 LIMIT 来限制行数
当需要限制行数时,必须使用标准的LIMIT语法
</rule>

other_rule: |
Expand Down
2 changes: 1 addition & 1 deletion backend/templates/sql_examples/StarRocks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ template:

limit_rule: |
<rule>
行数限制使用标准SQL语法:
当需要限制行数时,必须使用标准的LIMIT语法
<note>
1. 标准写法:LIMIT [count]
2. 分页写法:LIMIT [count] OFFSET [start]
Expand Down