Files
2nd/10_Wiki/Topic_Programming/Topic_SQL/SQL_Syntax.md
T
Antigravity Agent e9cbf23ab5 docs(10_Wiki): Dev 폴더 누락분 반영 — Topic_Programming으로 통합
이전 재구성 작업에서 Dev/ 폴더가 누락되었던 것을 반영.

- Dev/Topic_Programming(중첩 폴더, 78개)은 Dev 자체 최상위 폴더들
  (Architecture/Conventions/Engineering_Intelligence 등)과 완전 중복이라 제거.
- Dev 최상위 엔지니어링 지식 폴더(Architecture/Conventions/Engineering_Intelligence/
  Failure_Library/Generalized_Principles/Language/Pattern_Catalog/Platform_Guides/
  Subsystems, 77개)는 이미 Topic_Programming/Topic_Programming에 더 최신 버전이
  존재해 중복 제거(고유 콘텐츠 1개는 예외 처리하여 이동 보존).
- Dev의 W3Schools 언어 튜토리얼 폴더(Topic_C/CPP/CSS/CSharp/HOWTO/HTML/Java/
  JavaScript/PHP/Python/SQL/W3CSS, 1201개)는 전부 Topic_Programming 하위로 이동.
- 에이전트 운영 상태(.astra/docs)는 그대로 유지, 콘텐츠 폴더만 정리.
- Topic_Programming 최종 문서 수: 2784 → 3985.
2026-07-05 00:39:13 +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).