II. SQL ¾ð¾î

¿©±â¼­´Â PostgreSQL¿¡¼­ »ç¿ëÇÏ´Â SQL ¾ð¾î¿¡ ´ëÇؼ­ ´Ù·é´Ù. ¸ÕÀú, SQLÀÇ ÀϹÝÀûÀÎ ±¸¹®À» ¼³¸íÇϸç, À̾î, µ¥ÀÌÅͺ£À̽º¸¦ ¸¸µå´Â ¹ý, ÀڷḦ º¸°üÇϱâ À§ÇÑ Å×ÀÌºí ¸¸µé±â, ÀÚ·á ÀÔ·Â, ¼öÁ¤, »èÁ¦¿Í °°Àº ÀÛ¾÷µé, ±×¸®°í, ÀúÀåµÇ¾îÀÖ´Â ÀڷḦ ã¾Æº¸´Â ¹æ¹ýÀ» ´Ù·ç¸ç, Á߹ݺο¡¼­´Â ´Ù·ç´Â ÀÚ·áÇü°ú, SQL ¸í·É¿¡¼­ »ç¿ëÇÒ ¼ö ÀÖ´Â ÇÔ¼öµé¿¡ ´ëÇؼ­ ´Ù·é´Ù. ³¡ºÎºÐ¿¡¼­´Â µ¥ÀÌÅͺ£À̽º°¡ ÃÖÀûÀÇ ¼º´ÉÀ» ¹ßÈÖÇÒ ¼ö ÀÖ´Â °¢Á¾ Æ©´× ¹æ¹ýµéÀ» ¼Ò°³ÇÑ´Ù.

ÀÌ ¹®¼­´Â Ãʺ¸ÀÚ°¡ ´Ù¸¥ Âü°í »çÇ×µéÀ» »ìÆì º¼ ÇÊ¿ä ¾øÀÌ, óÀ½ºÎÅÍ Â÷±ÙÈ÷ Àо¸é SQL Àü¹Ý¿¡ ´ëÇؼ­ ¸ðµç Á¤º¸¸¦ ½ÀµæÇÒ ¼ö ÀÖµµ·Ï ±¸¼ºµÇ¾ú´Ù. ¶ÇÇÑ °¢ ÀåµéÀº ±× Àå¿¡¼­ ´Ù·ç°í ÀÖ´Â ºÎºÐµéÀÌ ¼­·Î ´Ù¸¥ Àå¿¡ °ÉÃÄ ¿¬°áµÇ¾î ÀÖÁö ¾Ê¾Æ¼­, ÀÌ¹Ì ¾î´À Á¤µµ SQL¿¡ ´ëÇؼ­ ¾Ë°í ÀÖ´Â »ç¶÷À̶ó¸é, °ü½É ºÐ¾ß¸¸ ¹Ù·Î »ìÆ캼 ¼ö ÀÖµµ·Ï ÀÛ¼ºµÇ¾ú´Ù. ¶ÇÇÑ ¾È³»¼­ÀÇ ¼º°ÝÀ» °¡Áö°í ÀÖ¾î, ½±°Ô ÀÐ¾î °¥ ¼ö ÀÖµµ·Ï ¾ö°ÝÇÑ ¾ð¾î Á¤ÀÇ ºÎºÐµéÀº ÇÇÇß´Ù. ÇØ´ç Á¤º¸ÀÇ ¿Ïº®ÇÑ ¼³¸íÀÌ ÇÊ¿äÇÏ´Ù¸é, VI 부¸¦ ÂüÁ¶ÇϽöó.

ÀÌ ¹®¼­¸¦ Àд »ç¶÷Àº ÃÖ¼ÒÇÑ PostgreSQL µ¥ÀÌÅͺ£À̽º Á¢¼ÓÀº ¾î¶»°ÔÇϸç, SQL ¸í·ÉÀ» ¾î¶»°Ô »ç¿ëÇÏ´ÂÁö Á¤µµ´Â ¾Ë°í ÀÖ¾î¾ßÇÑ´Ù. ÀÌ ºÎºÐ¿¡ ´ëÇÑ À̾߱â´Â I 부¿¡¼­ ´Ù·ç°í ÀÖ´Ù. ¿©±â¼­ ¿¹Á¦·Î º¸¿©Áö´Â ³»¿ëµéÀº PostgreSQL ´ëÈ­Çü Å͹̳ÎÀÎ psql¿¡¼­ ´Ù·é °ÍµéÀÌ´Ù. ÀÌ Á¡À» °¨¾ÈÇÏ°í, µ¶ÀÚµéÀº ÀÚ½ÅÀÌ ¾²´Â °Í¿¡ ¸ÂÃß¾î Àо¸é µÉ °ÍÀÌ´Ù.

차례
4. SQL Syntax
4.1. Lexical Structure
4.2. Value Expressions
5. Data Definition
5.1. Table Basics
5.2. Default Values
5.3. Constraints
5.4. System Columns
5.5. Modifying Tables
5.6. Privileges
5.7. Schemas
5.8. Inheritance
5.9. Partitioning
5.10. Other Database Objects
5.11. Dependency Tracking
6. Data Manipulation
6.1. Inserting Data
6.2. Updating Data
6.3. Deleting Data
7. Queries
7.1. Overview
7.2. Table Expressions
7.3. Select Lists
7.4. Combining Queries
7.5. Sorting Rows
7.6. LIMIT and OFFSET
7.7. VALUES Lists
7.8. WITH Queries
8. ÀÚ·áÇü
8.1. Numeric Types
8.2. Monetary Types
8.3. ¹®ÀÚ ÀÚ·áÇü
8.4. Binary Data Types
8.5. Date/Time Types
8.6. Boolean Type
8.7. Enumerated Types
8.8. Geometric Types
8.9. Network Address Types
8.10. ºñÆ® ¹®ÀÚ¿­ ÀÚ·áÇü
8.11. Text Search Types
8.12. UUID Type
8.13. XML Type
8.14. Arrays
8.15. Composite Types
8.16. Object Identifier Types
8.17. Pseudo-Types
9. Functions and Operators
9.1. Logical Operators
9.2. Comparison Operators
9.3. Mathematical Functions and Operators
9.4. String Functions and Operators
9.5. Binary String Functions and Operators
9.6. Bit String Functions and Operators
9.7. Pattern Matching
9.8. Data Type Formatting Functions
9.9. Date/Time Functions and Operators
9.10. Enum Support Functions
9.11. Geometric Functions and Operators
9.12. Network Address Functions and Operators
9.13. Text Search Functions and Operators
9.14. XML Functions
9.15. Sequence Manipulation Functions
9.16. Conditional Expressions
9.17. Array Functions and Operators
9.18. Aggregate Functions
9.19. Window Functions
9.20. Subquery Expressions
9.21. Row and Array Comparisons
9.22. Set Returning Functions
9.23. System Information Functions
9.24. System Administration Functions
9.25. Trigger Functions
10. Type Conversion
10.1. Overview
10.2. Operators
10.3. Functions
10.4. Value Storage
10.5. UNION, CASE, and Related Constructs
11. Indexes
11.1. Introduction
11.2. Index Types
11.3. Multicolumn Indexes
11.4. Indexes and ORDER BY
11.5. Combining Multiple Indexes
11.6. Unique Indexes
11.7. Indexes on Expressions
11.8. Partial Indexes
11.9. Operator Classes and Operator Families
11.10. Examining Index Usage
12. Àü¹® °Ë»ö(Full Text Search)
12.1. ¼Ò°³
12.2. Tables and Indexes
12.3. Controlling Text Search
12.4. Additional Features
12.5. Parsers
12.6. Dictionaries
12.7. Configuration Example
12.8. Testing and Debugging Text Search
12.9. GiST and GIN Index Types
12.10. psql Support
12.11. Limitations
12.12. Migration from Pre-8.3 Text Search
13. Concurrency Control
13.1. Introduction
13.2. Transaction Isolation
13.3. Explicit Locking
13.4. Data Consistency Checks at the Application Level
13.5. Locking and Indexes
14. Performance Tips
14.1. Using EXPLAIN
14.2. Statistics Used by the Planner
14.3. Controlling the Planner with Explicit JOIN Clauses
14.4. Populating a Database