Loading...
MySQL 9.5 Reference Manual 9.5의 14 Functions and Operators의 한국어 번역본입니다.
아래의 경우에 피드백에서 신고해주신다면 반영하겠습니다.
감사합니다 :)
Table of Contents
14.1 Built-In Function and Operator Reference 14.2 Loadable Function Reference 14.3 Type Conversion in Expression Evaluation 14.4 Operators 14.4.1 Operator Precedence 14.4.2 Comparison Functions and Operators 14.4.3 Logical Operators 14.4.4 Assignment Operators 14.5 Flow Control Functions 14.6 Numeric Functions and Operators 14.6.1 Arithmetic Operators 14.6.2 Mathematical Functions 14.7 Date and Time Functions 14.8 String Functions and Operators 14.8.1 String Comparison Functions and Operators 14.8.2 Regular Expressions 14.8.3 Character Set and Collation of Function Results 14.9 Full-Text Search Functions 14.9.1 Natural Language Full-Text Searches 14.9.2 Boolean Full-Text Searches 14.9.3 Full-Text Searches with Query Expansion 14.9.4 Full-Text Stopwords 14.9.5 Full-Text Restrictions 14.9.6 Fine-Tuning MySQL Full-Text Search 14.9.7 Adding a User-Defined Collation for Full-Text Indexing 14.9.8 ngram Full-Text Parser 14.9.9 MeCab Full-Text Parser Plugin 14.10 Cast Functions and Operators 14.11 XML Functions 14.12 Bit Functions and Operators 14.13 Encryption and Compression Functions 14.14 Locking Functions 14.15 Information Functions 14.16 Spatial Analysis Functions 14.16.1 Spatial Function Reference 14.16.2 Argument Handling by Spatial Functions 14.16.3 Functions That Create Geometry Values from WKT Values 14.16.4 Functions That Create Geometry Values from WKB Values 14.16.5 MySQL-Specific Functions That Create Geometry Values 14.16.6 Geometry Format Conversion Functions 14.16.7 Geometry Property Functions 14.16.8 Spatial Operator Functions 14.16.9 Functions That Test Spatial Relations Between Geometry Objects 14.16.10 Spatial Geohash Functions 14.16.11 Spatial GeoJSON Functions 14.16.12 Spatial Aggregate Functions 14.16.13 Spatial Convenience Functions 14.17 JSON Functions 14.17.1 JSON Function Reference 14.17.2 Functions That Create JSON Values 14.17.3 Functions That Search JSON Values 14.17.4 Functions That Modify JSON Values 14.17.5 Functions That Return JSON Value Attributes 14.17.6 JSON Table Functions 14.17.7 JSON Schema Validation Functions 14.17.8 JSON Utility Functions 14.18 Replication Functions 14.18.1 Group Replication Functions 14.18.2 Functions Used with Global Transaction Identifiers (GTIDs) 14.18.3 Asynchronous Replication Channel Failover Functions 14.18.4 Position-Based Synchronization Functions 14.19 Aggregate Functions 14.19.1 Aggregate Function Descriptions 14.19.2 GROUP BY Modifiers 14.19.3 MySQL Handling of GROUP BY 14.19.4 Detection of Functional Dependence 14.20 Window Functions 14.20.1 Window Function Descriptions 14.20.2 Window Function Concepts and Syntax 14.20.3 Window Function Frame Specification 14.20.4 Named Windows 14.20.5 Window Function Restrictions 14.21 Vector Functions 14.22 Performance Schema Functions 14.23 Internal Functions 14.24 Miscellaneous Functions 14.25 Precision Math 14.25.1 Types of Numeric Values 14.25.2 DECIMAL Data Type Characteristics 14.25.3 Expression Handling 14.25.4 Rounding Behavior 14.25.5 Precision Math Examples
Expression은
SQL
statement의 여러 위치에서 사용할 수 있는데, 예를 들어
SELECT statement의
ORDER BY 또는 HAVING 절,
SELECT,
DELETE,
UPDATE statement의
WHERE 절, 또는
SET
statement에서 사용할 수 있습니다. Expression은 리터럴 값, 컬럼 값,
NULL, 변수, 내장 함수와
연산자, 로더블 함수, 스토어드 함수(일종의
스토어드 객체)와 같은 여러 소스로부터 가져온 값을 사용하여 작성할 수 있습니다.
이 chapter에서는 MySQL에서 expression을 작성할 때 사용할 수 있도록 허용된 내장 함수와 연산자를 설명합니다. 로더블 함수와 스토어드 함수에 대한 정보는 Section 7.7, “MySQL Server Loadable Functions” 및 Section 27.2, “Using Stored Routines”를 참조하십시오. 서로 다른 종류의 함수에 대한 레퍼런스를 서버가 해석하는 규칙에 대해서는 Section 11.2.5, “Function Name Parsing and Resolution”을 참조하십시오.
NULL을 포함하는 expression은 특정 함수 또는 연산자에 대한 설명서에서 달리 명시되지 않는 한 항상
NULL 값을 생성합니다.
참고
기본적으로 함수 이름과 그 뒤에 오는 괄호 사이에는 공백이 있으면 안 됩니다. 이는 MySQL 파서가 함수 호출과, 우연히 함수와 같은 이름을 가진 테이블이나 컬럼에 대한 레퍼런스를 구분하는 데 도움이 됩니다. 그러나 함수 인자 주변의 공백은 허용됩니다.
MySQL 서버를 시작할 때
--sql-mode=IGNORE_SPACE 옵션으로 시작하여 함수 이름 뒤에 오는 공백을 허용하도록 서버에 지시할 수 있습니다.
(Section 7.1.11, “Server SQL Modes”를 참조하십시오.) 개별 클라이언트 프로그램은
mysql_real_connect()를 사용할 때
CLIENT_IGNORE_SPACE 옵션을 사용하여 이 동작을 요청할 수 있습니다. 어느 경우이든 모든 함수 이름은 예약어가 됩니다.
간결성을 위해, 이 chapter의 일부 예제에서는 mysql 프로그램의 출력 결과를 축약된 형태로 표시합니다. 다음 형식으로 예제를 보여 주는 대신:
1SELECT MOD(29,9); 2+-----------+ 3| mod(29,9) | 4+-----------+ 5| 2 | 6+-----------+ 71 rows in set (0.00 sec)
대신 다음 형식이 사용됩니다:
1SELECT MOD(29,9); 2 -> 2
13.9 Using Data Types from Other Database Engines
14.1 Built-In Function and Operator Reference