如何查询supabase中的文本[]列?
中定义为多维数组的文本列中的值来检索行
我正在尝试使用以下URL
https://database_url.supabase.co/rest/v1/test_data = in
。 /database_url.supabase.co/rest/v1/test_db?data=In.(1)“ rel =“ nofollow noreferrer”> https://database_url.supabase.co/rest/rest/rest/v1/test_data = data )
但似乎不起作用。错误消息是运算符不存在:text [] ~~未知
提示为没有操作员匹配给定的名称和参数类型。您可能需要添加明确的类型铸件。
任何帮助将不胜感激! 提前致谢。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要通过数组内部的值过滤,您可以使用
cs
运算符,该操作员等同于postgresql中的@>
(包含)。例如,此查询将检索具有值
“ 1”
的所有行,Data
列的数组中。To filter by the values inside of an array, you can use the
cs
operator, which is equivalent to@>
(contains) in PostgreSQL.For instance, this query will retrieve all the rows that have the value
"1"
present in the array of thedata
column.