Extracts specified substring. (same as <literal>substring(<parameter>string</parameter> from <parameter>from</parameter> for <parameter>count</parameter>)</literal>)
<firstterm><acronym>SQL</acronym> functions</firstterm> are constructs
If you have pattern matching needs that go beyond this, or want to
defined by the <acronym>SQL92</acronym> standard which have
make pattern-driven substitutions or translations, consider
function-like syntax but which can not be implemented as simple
writing a user-defined function in Perl or Tcl.
functions.
</para>
</para>
</tip>
<sect2 id="functions-like">
<title>Pattern Matching with <function>LIKE</function></title>
<synopsis>
<replaceable>string</replaceable> LIKE <replaceable>pattern</replaceable> <optional> ESCAPE <replaceable>escape-character</replaceable> </optional>
<replaceable>string</replaceable> NOT LIKE <replaceable>pattern</replaceable> <optional> ESCAPE <replaceable>escape-character</replaceable> </optional>
</synopsis>
<para>
<para>
<table tocentry="1">
Every <replaceable>pattern</replaceable> defines a set of strings.
<title>SQL Functions</title>
The <function>LIKE</function> expression returns true if the
<tgroup cols="4">
<replaceable>string</replaceable> is contained in the set of
<thead>
strings represented by <replaceable>pattern</replaceable>. (As
<row>
expected, the <function>NOT LIKE</function> expression returns
<entry>Function</entry>
false if <function>LIKE</function> returns true, and vice versa.
<entry>Same as the data type of the input expression.</entry>
<entry>The maximum value of <replaceable class="parameter">expression</replaceable> across all selected rows.</entry>
<entry>MAX(age)</entry>
<entry>Finding the maximum value is supported on the following data types: int8, int4, int2, float4, float8, date, time, timetz, money, timestamp, interval, text, numeric.</entry>
<entry>Same as the data type of the input expression.</entry>
<entry>The minimum value of <replaceable class="parameter">expression</replaceable> across all selected rows.</entry>
<entry>MIN(age)</entry>
<entry>Finding the minimum value is supported on the following data types: int8, int4, int2, float4, float8, date, time, timetz, money, timestamp, interval, text, numeric.</entry>