我正在使用 Postgresql V 9.1:
SELECT 'k=>name, v=>Nava Ratna Secondary School'::hstore;
此代码返回错误:
ERROR: Syntax error near 'R' at position 17
LINE 1: SELECT 'k=>name, v=>Nava Ratna Secondary School'::hstore;
^
********** Error **********
ERROR: Syntax error near 'R' at position 17
SQL state: XX000
Character: 8
并将“Nava Ratna Secondary School”中的空格填充为“Nava_Ratna_Secondary_School”或将其删除为“NavaRatnaSecondarySchool”。
但我需要用空格存储 v=Nava Ratna 中学。怎么做?