Files
2nd/10_Wiki/Dev/Topic_SQL/SQL_Syntax.md
T
Antigravity Agent 1cfd3bbb56 docs(10_Wiki): 위키 구조 정리 — 언어 튜토리얼 카테고리 폴더 제거 + 신규 자산 동기화
Topic_CSS/Topic_HTML/Topic_JavaScript/Topic_Prompt/Topic_Comfyui 등 기존 카테고리 폴더를 정리하고,
Topic_Graphic/Dev 등 신규 산출물과 Topics 내부 세션/메모리 기록을 동기화.
2026-07-05 00:10:59 +09:00

4.6 KiB

id, title, category, status, verification_status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, created_at, updated_at, review_reason, merge_history, tags, raw_sources, applied_in, github_commit
id title category status verification_status canonical_id aliases duplicate_of source_trust_level confidence_score created_at updated_at review_reason merge_history tags raw_sources applied_in github_commit
sql-syntax SQL Syntax Database draft conceptual
SQL Statements
SQL keywords
SQL 문법
B 0.9 2026-07-04 2026-07-04
sql
database
w3schools
syntax
https://www.w3schools.com/sql/sql_syntax.asp

SQL Syntax

🎯 한 줄 통찰 (One-line insight)

Most database actions are performed with SQL statements built from easy-to-understand keywords, which are case-insensitive but conventionally written in upper-case and terminated with a semicolon. [S1]

🧠 핵심 개념 (Core concepts)

  • SQL statements — the unit of action against a database; consist of keywords such as SELECT, UPDATE, DELETE, INSERT INTO. [S1]
  • Database tables — a database most often contains one or more named tables (e.g. "Customers"), each holding records (rows) with data; this tutorial uses the well-known Northwind sample database. [S1]
  • Case insensitivity — SQL keywords are NOT case sensitive (select is the same as SELECT); convention favors upper-case keywords. [S1]
  • Semicolons — some database systems require a semicolon to separate multiple SQL statements sent in the same call to the server. [S1]
  • Most important SQL commandsSELECT, UPDATE, DELETE, INSERT INTO, CREATE DATABASE, ALTER DATABASE, CREATE TABLE, ALTER TABLE, DROP TABLE, CREATE INDEX, DROP INDEX. [S1]

🧩 추출된 패턴 (Extracted patterns)

  • Upper-case keyword convention — writing keywords in upper-case (even though not required) improves readability and is the convention followed throughout the tutorial. [S1]
  • Statement-terminator discipline — always ending statements with ; avoids ambiguity when multiple statements are sent together, even on systems where it isn't strictly required. [S1]

⚖️ 비교 및 선택 기준 (Comparison & decision criteria)

항목 (Option) 장점 단점 언제 선택
세미콜론 사용 여러 SQL문을 한 번에 보낼 때 구분이 명확함 세미콜론을 요구하지 않는 시스템에서는 불필요해 보일 수 있음 다중 statement 전송이 필요하거나 이식성을 고려할 때
세미콜론 생략 단일 statement 실행 시 더 간결함 시스템에 따라 오류가 날 수 있음 세미콜론을 명시적으로 요구하지 않는 단일 statement 환경

📖 세부 내용 (Details)

  • The following statement selects all records from the "Customers" table: [S1]
SELECT * FROM Customers;
  • A sample from the Customers table has columns CustomerID, CustomerName, ContactName, Address, City, PostalCode, Country with rows like 1 | Alfreds Futterkiste | Maria Anders | Obere Str. 57 | Berlin | 12209 | Germany. [S1]
  • Most important SQL commands (grouped by purpose): [S1]
    • Data: SELECT, UPDATE, DELETE, INSERT INTO
    • Database: CREATE DATABASE, ALTER DATABASE
    • Table: CREATE TABLE, ALTER TABLE, DROP TABLE
    • Index: CREATE INDEX, DROP INDEX

⚖️ 모순 및 업데이트 (Contradictions & updates)

소스에서 모순되는 정보는 발견되지 않음. 다만 "일부 데이터베이스 시스템만 세미콜론을 요구한다"는 서술 자체가 시스템마다 동작이 다를 수 있음을 명시하고 있다. [S1]

🛠️ 적용 사례 (Applied in summary)

현재 발견된 실제 적용 사례가 없습니다 — 이 문서에서 정의한 대문자 키워드/세미콜론 컨벤션은 튜토리얼 전체 예제에서 일관되게 사용된다. [S1]

💻 코드 패턴 (Code patterns)

Select all records (SQL):

SELECT * FROM Customers;

검증 상태 및 신뢰도

  • 상태: draft
  • 검증 단계: conceptual
  • 출처 신뢰도: B (W3Schools — widely used educational reference, not a primary standards body)
  • 신뢰 점수: 0.90
  • 중복 검사 결과: 신규 생성 (New discovery)

🔗 지식 그래프 (Knowledge Graph)

📚 출처 (Sources)

📝 변경 이력 (Change history)

  • 2026-07-04: Initial draft synthesized from the W3Schools "SQL Syntax" page (Astra wiki-curation, P-Reinforce v3.1 format).