网站建设服务器是什么意思销售推广方案
Chapter 9. Functions and Operators
第九章.函数及操作符
PostgreSQL为内置数据类型提供了大量函数和运算符。本章对其中大部分进行了讲解,还有些函数在其相关的章节中已出现。用户还可以定义自己的函数和运算符,如第五部分所述。psql命令\df和\do可分别用于列出所有可用的函数和运算符。
本章介绍函数或类型所引用参数及返回的数据类型格式如下:
repeat ( text, integer ) → text
意思为函数repeat有两个参数,一个是text类型,一个是integer类型,并返回一个text类型的结果。右箭头也用来指代示例的结果:
repeat('Pg', 4) → PgPgPgPg
If you are concerned about portability then note that most of the functions and operators described in this chapter, with the exception of the most trivial arithmetic and comparison operators and some explicitly marked functions, are not specified by the SQL standard. Some of this extended functionality is present in other SQL database management systems, and in many cases this functionality is compatible and consistent between the various implementations. This chapter is also not exhaustive;additional functions appear in relevant sections of the manual.
如果您担心可移植性,那么请注意,本章介绍的大多数函数和运算符,除最常用的算术和比较运算符以及一些显式标记的函数外,SQL标准均未指定。此扩展功能中的某些功能存在于其他SQL数据库管理系统中,并且在许多情况下,此功能在各种实现之间是兼容且一致的。本章未尽之处;可在手册的相关章节中查看。