开发者

Error of text2ltree

开发者 https://www.devze.com 2023-01-02 01:29 出处:网络
Error of text2ltree I can\'t use text2ltree. Any suggestion? SELECT tex开发者_Go百科t2ltree(to_char(243, \'09999999\'))

Error of text2ltree I can't use text2ltree. Any suggestion?

SELECT tex开发者_Go百科t2ltree(to_char(243, '09999999'))

********** Error **********

ERROR: syntax error at position 0 SQL state: 42601


This looks like it is caused by leading whitespace being returned by to_char. To fix, use ltrim:

SELECT text2ltree(ltrim(to_char(243, '09999999'))) 


Try

SELECT FROM text2ltree(to_char(243, '09999999')) 
0

精彩评论

暂无评论...
验证码 换一张
取 消