--- id: sql-operators title: "SQL Operators" category: "Database" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["SQL operator reference", "SQL μ—°μ‚°μž"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.87 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["sql", "database", "w3schools", "operators"] raw_sources: ["https://www.w3schools.com/sql/sql_operators.asp"] applied_in: [] github_commit: "" --- # [[SQL Operators]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) SQL operators split into five families β€” arithmetic, comparison, compound, bitwise, and logical β€” with the logical family (AND/OR/IN/LIKE/BETWEEN/EXISTS/ANY/ALL/SOME) being the set that composes WHERE-clause conditions. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **SQL operators** β€” keywords and symbols used to perform operations with data values, used in statements like SELECT, WHERE, LIKE. [S1] - **Five categories** β€” Arithmetic, Comparison, Compound, Bitwise, Logical. [S1] - **Arithmetic operators** β€” `+`, `-`, `*`, `/`, `%` (modulus). [S1] - **Comparison operators** β€” `=`, `>`, `<`, `>=`, `<=`, `<>`. [S1] - **Compound operators** β€” `+=`, `-=`, `*=`, `/=`, `%=`, `&=`, `^=`, `|*=` (assignment-with-operation shorthands). [S1] - **Bitwise operators** β€” `&`, `|`, `^`, `~`. [S1] - **Logical operators** β€” `ALL`, `AND`, `ANY`, `BETWEEN`, `EXISTS`, `IN`, `LIKE`, `NOT`, `OR`, `SOME`. [S1] ## 🧩 μΆ”μΆœλœ νŒ¨ν„΄ (Extracted patterns) - **Logical operators as the WHERE-clause vocabulary** β€” nearly every operator covered in this tutorial's earlier WHERE/filtering chapters (AND, OR, NOT, IN, BETWEEN, LIKE, EXISTS, ANY, ALL) is consolidated here as one "logical operators" family, plus `SOME` as an ANY synonym not covered elsewhere in the tutorial. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) 이 λ¬Έμ„œλŠ” μ‚°μˆ /비ꡐ/λ³΅ν•©λŒ€μž…/λΉ„νŠΈ/논리 λ‹€μ„― λ²”μ£Όμ˜ μ—°μ‚°μž κΈ°ν˜Έν‘œλ₯Ό μš”μ•½ μ œκ³΅ν•˜λŠ” 레퍼런슀 μ„±κ²©μ˜ 챕터닀. κ°œλ³„ 논리 μ—°μ‚°μž(AND/OR/IN/LIKE/BETWEEN/EXISTS/ANY/ALL)의 상세 문법과 μ˜ˆμ œλŠ” 각각의 μ „μš© μ±•ν„°μ—μ„œ 이미 λ‹€λ€„μ‘Œλ‹€. [S1] ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) - **`SOME`** μ—°μ‚°μžλŠ” "ANY의 μ–΄λ–€ μ„œλΈŒμΏΌλ¦¬ 값이든 쑰건을 λ§Œμ‘±ν•˜λ©΄ TRUE"둜 ANY와 λ™μΌν•œ 의미둜 μ†Œκ°œλ˜μ§€λ§Œ, νŠœν† λ¦¬μ–Όμ˜ λ‹€λ₯Έ μ–΄λŠ μ±•ν„°μ—μ„œλ„ SOME μ „μš© μ±•ν„°λŠ” μ—†μŒ β€” ANY의 λ™μ˜μ–΄λ‘œλ§Œ 언급됨. [S1] ## πŸ› οΈ 적용 사둀 (Applied in summary) ν˜„μž¬ 발견된 μ‹€μ œ 적용 사둀가 μ—†μŠ΅λ‹ˆλ‹€ β€” 이 λ¬Έμ„œλŠ” μ•žμ„  WHERE/필터링 μ±•ν„°λ“€μ—μ„œ 닀룬 논리 μ—°μ‚°μžλ₯Ό ν•˜λ‚˜μ˜ κΈ°ν˜Έν‘œλ‘œ μ •λ¦¬ν•œ λ ˆνΌλŸ°μŠ€λ‹€. [S1] ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) μ†ŒμŠ€μ— μ½”λ“œ μ˜ˆμ‹œ μ—†μŒ (μ—°μ‚°μž κΈ°ν˜Έμ™€ μ„€λͺ… μœ„μ£Όμ˜ 레퍼런슀 ν‘œ). ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference, not a primary standards body) - **μ‹ λ’° 점수:** 0.87 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[SQL Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[SQL And]], [[SQL Or]], [[SQL In]], [[SQL Like]], [[SQL Between]], [[SQL Exists]], [[SQL Any]], [[SQL All]] - **μ°Έμ‘° λ§₯락:** μ•žμ„œ 배운 논리 μ—°μ‚°μžλ“€μ„ ν•œλˆˆμ— μ •λ¦¬ν•œ μš”μ•½ 레퍼런슀 β€” 처음 ν•™μŠ΅λ³΄λ‹€λŠ” λΉ λ₯Έ 쑰회용. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” SQL Operators β€” https://www.w3schools.com/sql/sql_operators.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "SQL Operators" page (Astra wiki-curation, P-Reinforce v3.1 format).