数据库教程
  • Sakila
  • MySQL
  • MySQL 参考
  • PostgreSQL
  • PostgreSQL 字符串函数参考
    • ascii
    • bit_length
    • btrim
    • char_length
    • character_length
    • chr
    • concat
    • concat_ws
    • format
    • initcap
    • left
    • length
    • lower
    • lpad
    • ltrim
    • md5
    • normalize
    • octet_length
    • overlay
    • parse_ident
    • pg_client_encoding
    • position
    • quote_ident
    • quote_literal
    • quote_nullable
    • regexp_match
    • regexp_matches
    • regexp_replace
    • regexp_split_to_array
    • regexp_split_to_table
    • repeat
    • replace
    • reverse
    • right
    • rpad
    • rtrim
    • split_part
    • starts_with
    • string_to_array
    • string_to_table
    • strpos
    • substr
    • substring
    • to_ascii
    • to_char
    • to_hex
    • to_number
    • translate
    • trim
    • unistr
    • upper
  • PostgreSQL 数学函数参考
    • abs
    • acos
    • acosd
    • acosh
    • asin
    • asind
    • asinh
    • atan
    • atan2
    • atan2d
    • atand
    • atanh
    • cbrt
    • ceil
    • ceiling
    • cos
    • cosd
    • cosh
    • cot
    • cotd
    • degrees
    • div
    • exp
    • factorial
    • floor
    • gcd
    • lcm
    • ln
    • log
    • log10
    • min_scale
    • mod
    • pi
    • power
    • radians
    • random
    • round
    • scale
    • setseed
    • sign
    • sin
    • sind
    • sinh
    • sqrt
    • tan
    • tand
    • tanh
    • trim_scale
    • trunc
    • width_bucket
  • PostgreSQL 日期时间函数参考
    • age
    • clock_timestamp
    • current_date
    • current_time
    • current_timestamp
    • date_bin
    • date_part
    • date_trunc
    • extract
    • isfinite
    • justify_days
    • justify_hours
    • justify_interval
    • localtime
    • localtimestamp
    • make_date
    • make_interval
    • make_time
    • make_timestamp
    • make_timestamptz
    • now
    • pg_sleep
    • pg_sleep_for
    • pg_sleep_until
    • statement_timestamp
    • timeofday
    • to_date
    • to_timestamp
    • transaction_timestamp
  • PostgreSQL JSON 函数参考
    • array_to_json
    • json_array_elements
    • json_array_elements_text
    • json_array_length
    • json_build_array
    • json_build_object
    • json_each
    • json_each_text
    • json_extract_path
    • json_extract_path_text
    • json_object
    • json_object_keys
    • json_populate_record
    • json_populate_recordset
    • json_strip_nulls
    • json_to_record
    • json_to_recordset
    • json_typeof
    • jsonb_array_elements
    • jsonb_array_elements_text
    • jsonb_array_length
    • jsonb_build_array
    • jsonb_build_object
    • jsonb_each
    • jsonb_each_text
    • jsonb_extract_path
    • jsonb_extract_path_text
    • jsonb_insert
    • jsonb_object
    • jsonb_object_keys
    • jsonb_path_exists
    • jsonb_path_exists_tz
    • jsonb_path_match
    • jsonb_path_match_tz
    • jsonb_path_query
    • jsonb_path_query_array
    • jsonb_path_query_array_tz
    • jsonb_path_query_first
    • jsonb_path_query_first_tz
    • jsonb_path_query_tz
    • jsonb_populate_record
    • jsonb_populate_recordset
    • jsonb_pretty
    • jsonb_set
    • jsonb_set_lax
    • jsonb_strip_nulls
    • jsonb_to_record
    • jsonb_to_recordset
    • jsonb_typeof
    • row_to_json
    • to_json
    • to_jsonb
  • PostgreSQL 数组函数参考
    • array_append
    • array_cat
    • array_dims
    • array_fill
    • array_length
    • array_lower
    • array_ndims
    • array_position
    • array_positions
    • array_prepend
    • array_remove
    • array_replace
    • array_to_string
    • array_upper
    • cardinality
    • trim_array
    • unnest
  • PostgreSQL 几何函数参考
    • area()
    • bound_box()
    • box(circle)
    • box(point,point)
    • box(point)
    • box(polygon)
    • center()
    • circle()
    • circle(box)
    • circle(polygon)
    • diagonal()
    • diameter()
    • height()
    • isclosed()
    • isopen()
    • length()
    • line()
    • lseg(box)
    • lseg(point,point)
    • npoints()
    • path(polygon)
    • pclose()
    • point()
    • point(box)
    • point(circle)
    • point(lseg)
    • point(polygon)
    • polygon(box)
    • polygon(circle)
    • polygon(integer, circle)
    • polygon(path)
    • popen()
    • radius()
    • slope()
    • width()
  • PostgreSQL 序列操作函数参考
    • currval
    • lastval
    • nextval
    • setval
  • PostgreSQL 枚举函数参考
    • enum_first
    • enum_last
    • enum_range
  • PostgreSQL 返回集合的函数参考
    • generate_series
    • generate_subscripts
  • PostgreSQL 范围函数参考
    • isempty()
    • lower_inc()
    • lower_inf()
    • lower()
    • multirange()
    • range_merge()
    • unnest()
    • upper_inc()
    • upper_inf()
    • upper()
  • PostgreSQL 数据类型
    • bigint
    • bigserial
    • boolean
    • box
    • char
    • cidr
    • circle
    • citext
    • date
    • decimal
    • double precision
    • enum
    • inet
    • integer
    • interval
    • json
    • jsonb
    • line
    • lseg
    • numeric
    • path
    • point
    • polygon
    • real
    • serial
    • smallint
    • text
    • time
    • timestamp
    • timestamptz
    • timetz
    • uuid
    • varchar
  • PostgreSQL 窗口函数参考
    • cume_dist
    • dense_rank
    • first_value
    • lag
    • last_value
    • lead
    • nth_value
    • ntile
    • percent_rank
    • rank
    • row_number
  • PostgreSQL 会话信息函数参考
    • current_catalog
    • current_database
    • current_query
    • current_role
    • current_schema
    • current_schemas
    • current_user
    • inet_client_addr
    • inet_client_port
    • inet_server_addr
    • inet_server_port
    • pg_backend_pid
    • pg_blocking_pids
    • pg_conf_load_time
    • pg_current_logfile
    • pg_is_other_temp_schema
    • pg_jit_available
    • pg_listening_channels
    • pg_my_temp_schema
    • pg_notification_queue_usage
    • pg_postmaster_start_time
    • pg_trigger_depth
    • session_user
    • user
    • version
  • PostgreSQL 聚合函数参考
    • array_agg
    • avg
    • bit_and
    • bit_or
    • bit_xor
    • bool_and
    • bool_or
    • count
    • every
    • json_agg
    • json_object_agg
    • jsonb_agg
    • jsonb_object_agg
    • max
    • min
    • range_agg
    • range_intersect_agg
    • stddev
    • stddev_pop
    • stddev_samp
    • string_agg
    • sum
    • var_pop
    • var_samp
    • variance

PostgreSQL 返回集合的函数参考

本页整理了 PostgreSQL 中的返回值为集合的所有函数。

  1. generate_series

    PostgreSQL generate_series() 函数根据指定的开始值、结束值和步长返回一个基于系列的集合。
  2. generate_subscripts

    PostgreSQL generate_subscripts() 函数根据指定的数组和维度返回由数组下标组成的集合。
←PostgreSQL enum_range() 函数使用指南 PostgreSQL generate_series() 函数使用指南→