The ST_seti function takes an vector argument (A), sorts the data and removes duplicate elements. The function returns an index vector of the result.
Return Value
C is an index vector.
Parameters
A is a real or string vector.
bNoSort.
Example
* ST_seti([1.3, 4.2, 2.2, 4.2, 6.1, 3.1])
* 1.000 3.000 6.000 2.000 5.000
*
* ST_seti(["one", "four", "two", "four", "three"])'
4
1
5
3
History
| Version | Description |
|---|---|
| 5.9.3 | New parameter bNoSort. |
| 5.5.2 | New. |
See also
Overview Strings, ST_complement, ST_intersection, ST_union, ST_set
id-1858021