--- id: sql-intro title: "SQL Intro" category: "Database" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["SQL Introduction", "What is SQL", "SQL μ†Œκ°œ", "Structured Query Language"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.9 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["sql", "database", "w3schools", "rdbms", "basics"] raw_sources: ["https://www.w3schools.com/sql/sql_intro.asp"] applied_in: [] github_commit: "" --- # [[SQL Intro]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) SQL is the ANSI/ISO-standard language for accessing and manipulating data in a Relational Database Management System (RDBMS), where data lives in tables made of rows and columns. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **SQL (Structured Query Language)** β€” a standard language for accessing and manipulating databases, standardized by ANSI (1986) and ISO (1987). [S1] - **What SQL can do** β€” execute queries, retrieve/insert/update/delete records, create databases/tables/stored procedures/views, and set permissions on tables, procedures, and views. [S1] - **Standard but fragmented** β€” although SQL is an ANSI/ISO standard, different database systems implement their own proprietary extensions on top of a common core (SELECT/UPDATE/DELETE/INSERT/WHERE). [S1] - **RDBMS (Relational Database Management System)** β€” the basis for SQL and all modern database systems (MS SQL Server, IBM DB2, Oracle, MySQL, MS Access); data is stored in tables, where a column is a vertical entity and a record (row) is a horizontal entity. [S1] - **Using SQL on a web site** β€” typically requires an RDBMS program (MS Access/SQL Server/MySQL), a server-side scripting language (PHP/ASP) to run SQL, and HTML/CSS to present the results. [S1] ## 🧩 μΆ”μΆœλœ νŒ¨ν„΄ (Extracted patterns) - **Table = columns + rows** β€” every RDBMS models data as tables where columns define the schema and records (rows) hold the data. [S1] - **Standard-core + vendor-extension** β€” expect the major commands to work everywhere, but expect proprietary extensions to differ per vendor. [S1] - **Three-layer web stack** β€” RDBMS (data) + server-side language (logic) + HTML/CSS (presentation) is the classic pattern for a database-backed web site. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) - SQL stands for **Structured Query Language** and lets you access and manipulate data stored in a database. [S1] - It became a standard of the American National Standards Institute (ANSI) in 1986 and of the International Organization for Standardization (ISO) in 1987. [S1] - Example table ("Customers") illustrates the RDBMS model: ```sql SELECT * FROM Customers; ``` - The Customers example table has columns `CustomerID, CustomerName, ContactName, Address, City, PostalCode, Country`, and each row is one customer record. [S1] ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) μ†ŒμŠ€μ—μ„œ λͺ¨μˆœλ˜λŠ” μ •λ³΄λŠ” λ°œκ²¬λ˜μ§€ μ•ŠμŒ. ## πŸ› οΈ 적용 사둀 (Applied in summary) ν˜„μž¬ 발견된 μ‹€μ œ 적용 사둀가 μ—†μŠ΅λ‹ˆλ‹€ β€” 이 λ¬Έμ„œλŠ” 개둠(Intro) νŽ˜μ΄μ§€λ‘œ, 이후 SQL νŠœν† λ¦¬μ–Ό 전체(SELECT/WHERE/JOIN λ“±)μ—μ„œ μ—¬κΈ°μ„œ μ •μ˜ν•œ RDBMS/ν…Œμ΄λΈ” λͺ¨λΈμ΄ 반볡 μ μš©λœλ‹€. [S1] ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Select all records from a table (SQL): ```sql SELECT * FROM Customers; ``` ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference, not a primary standards body) - **μ‹ λ’° 점수:** 0.90 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[SQL Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[SQL Syntax]], [[SQL Select]], [[SQL Create Table]] - **μ°Έμ‘° λ§₯락:** SQL νŠœν† λ¦¬μ–Ό μ „μ²΄μ˜ μ§„μž…μ  β€” RDBMS/ν…Œμ΄λΈ” λͺ¨λΈμ„ 처음 μ •μ˜ν•˜λŠ” λ¬Έμ„œ. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” SQL Intro β€” https://www.w3schools.com/sql/sql_intro.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "SQL Intro" page (Astra wiki-curation, P-Reinforce v3.1 format).