docs(10_Wiki): 위키 구조 정리 — 언어 튜토리얼 카테고리 폴더 제거 + 신규 자산 동기화
Topic_CSS/Topic_HTML/Topic_JavaScript/Topic_Prompt/Topic_Comfyui 등 기존 카테고리 폴더를 정리하고, Topic_Graphic/Dev 등 신규 산출물과 Topics 내부 세션/메모리 기록을 동기화.
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
---
|
||||
id: php-mysql-select-limit
|
||||
title: "PHP MySQL Select Limit"
|
||||
category: "Programming_Language"
|
||||
status: "draft"
|
||||
verification_status: "conceptual"
|
||||
canonical_id: ""
|
||||
aliases: ["LIMIT OFFSET", "PHP MySQL 결과 제한"]
|
||||
duplicate_of: ""
|
||||
source_trust_level: "B"
|
||||
confidence_score: 0.88
|
||||
created_at: 2026-07-04
|
||||
updated_at: 2026-07-04
|
||||
review_reason: ""
|
||||
merge_history: []
|
||||
tags: ["php", "programming", "w3schools", "mysql", "limit"]
|
||||
raw_sources: ["https://www.w3schools.com/php/php_mysql_select_limit.asp"]
|
||||
applied_in: []
|
||||
github_commit: ""
|
||||
---
|
||||
|
||||
# [[PHP MySQL Select Limit]]
|
||||
|
||||
## 🎯 한 줄 통찰 (One-line insight)
|
||||
`LIMIT 15, 10` and `LIMIT 10 OFFSET 15` return the IDENTICAL result, but the numbers are REVERSED between the two forms — the comma syntax puts the offset first and count second, while the OFFSET keyword syntax puts count first and offset second, a subtle inversion the source explicitly flags to avoid confusion. [S1]
|
||||
|
||||
## 🧠 핵심 개념 (Core concepts)
|
||||
- **`LIMIT n`** — returns only the first `n` records. [S1]
|
||||
- **Purpose** — performance on large tables; avoids returning huge result sets unnecessarily. [S1]
|
||||
- **`LIMIT n OFFSET m`** — returns `n` records starting after skipping `m` records (i.e., starting at record m+1). [S1]
|
||||
- **Comma shorthand — `LIMIT m, n`** — same result as `LIMIT n OFFSET m`, but note the argument ORDER is reversed (offset first here, count first in the OFFSET form). [S1]
|
||||
|
||||
## 📖 세부 내용 (Details)
|
||||
- First 30 records: `$sql = "SELECT * FROM Orders LIMIT 30";`. [S1]
|
||||
- Records 16-25 via OFFSET: `$sql = "SELECT * FROM Orders LIMIT 10 OFFSET 15";` — "return only 10 records, start on record 16 (OFFSET 15)". [S1]
|
||||
- Same result via comma shorthand: `$sql = "SELECT * FROM Orders LIMIT 15, 10";` — note the numbers are reversed compared to the OFFSET form. [S1]
|
||||
|
||||
## ⚖️ 모순 및 업데이트 (Contradictions & updates)
|
||||
- **콤마 문법의 숫자 순서 반전**: LIMIT n OFFSET m과 LIMIT m, n이 동일한 결과를 내지만 숫자 순서가 반대라는 점이 혼동 방지를 위해 명시적으로 강조됨. [S1]
|
||||
|
||||
## 🛠️ 적용 사례 (Applied in summary)
|
||||
현재 발견된 실제 적용 사례가 없습니다 — 페이지네이션(16~25번째 레코드 조회)이 LIMIT+OFFSET 활용의 대표 실전 사례다. [S1]
|
||||
|
||||
## 💻 코드 패턴 (Code patterns)
|
||||
Two equivalent syntaxes for the same paginated range, with reversed argument order (SQL):
|
||||
```sql
|
||||
SELECT * FROM Orders LIMIT 10 OFFSET 15; -- 10 records starting at record 16
|
||||
SELECT * FROM Orders LIMIT 15, 10; -- same result, numbers reversed
|
||||
```
|
||||
|
||||
## ✅ 검증 상태 및 신뢰도
|
||||
- **상태:** draft
|
||||
- **검증 단계:** conceptual
|
||||
- **출처 신뢰도:** B (W3Schools — widely used educational reference, not a primary standards body)
|
||||
- **신뢰 점수:** 0.88
|
||||
- **중복 검사 결과:** 신규 생성 (New discovery)
|
||||
|
||||
## 🔗 지식 그래프 (Knowledge Graph)
|
||||
- **상위/루트:** [[PHP Tutorial]]
|
||||
- **관련 개념:** [[PHP MySQL Update]], [[PHP XML Parsers]]
|
||||
- **참조 맥락:** MySQL 섹션의 마지막 — XML 파싱 섹션으로 이어짐.
|
||||
|
||||
## 📚 출처 (Sources)
|
||||
- [S1] W3Schools — PHP MySQL Limit Data Selections — https://www.w3schools.com/php/php_mysql_select_limit.asp
|
||||
|
||||
## 📝 변경 이력 (Change history)
|
||||
- 2026-07-04: Initial draft synthesized from the W3Schools "PHP MySQL Limit Data Selections" page (Astra wiki-curation, P-Reinforce v3.1 format).
|
||||
Reference in New Issue
Block a user