Questions tagged «parse»

1
如何在未嵌套的数组中保留元素的原始顺序?
给定字符串: “我认为PostgreSQL很漂亮” 我想对在该字符串中找到的单个单词进行操作。本质上,我有一个单独的字符串,可以从中获取单词的详细信息,并希望在此字典中加入该字符串的未嵌套数组。 到目前为止,我有: select word, meaning, partofspeech from unnest(string_to_array('I think that PostgreSQL is nifty',' ')) as word from table t join dictionary d on t.word = d.wordname; 这样就完成了我希望做的基本工作,但是并没有保留原始的单词顺序。 相关问题: 带有元素编号的PostgreSQL unnest()
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.