Get Nth element of an array that returns from “string_to_array()” function

后端 未结 1 1018
夕颜
夕颜 2021-02-06 20:30

I am searching for a way to access to the Nth element of an array which is a result of string_to_array() function in PostgreSQL. For example,

Assume that a

相关标签:
1条回答
  • 2021-02-06 20:49
    select (string_to_array('1,2,3,4',','))[2];
    
    0 讨论(0)
提交回复
热议问题