Сложный SQL запрос: проблема с одинарными кавычками

Gamber
Дата: 03.05.2010 00:16:57
Есть вот такая вот строка (часть SQL запроса):
SELECT "id_service_support", "name_service_support", "price_service_support" FROM
"service_support",
(SELECT regexp_substr(upper(:name_service_support),'\[b]w[/b]+',1,level) user_input_word 
FROM DUAL connect by regexp_substr(:name_service_support,'\[b]w[/b]+',1,level) is not null) 
GROUP BY "id_service_support", "name_service_support", "price_service_support"
HAVING SUM(SIGN(INSTR(UPPER("name_service_support"),user_input_word))) > 0 
ORDER BY "name_service_support"
На "w" (выделено жирным), компилятор ругается:
Unrecognized escape sequence
Подскажите пожалуйста как в данной ситуации правильно сформировать строку...
Gamber
Дата: 03.05.2010 00:26:00
Жирным не выделилось, повторю код (чтоб без лишних символов):
SELECT "id_service_support", "name_service_support", "price_service_support" FROM
"service_support",
(SELECT regexp_substr(upper(:name_service_support),'\w+',1,level) user_input_word 
FROM DUAL connect by regexp_substr(:name_service_support,'\w+',1,level) is not null) 
GROUP BY "id_service_support", "name_service_support", "price_service_support"
HAVING SUM(SIGN(INSTR(UPPER("name_service_support"),user_input_word))) > 0 
ORDER BY "name_service_support"
Яростный Меч
Дата: 03.05.2010 02:12:14
@"SELECT id_service_support, name_service_support, price_service_support FROM
service_support,
(SELECT regexp_substr(upper(:name_service_support),'\w+',1,level) user_input_word 
FROM DUAL connect by regexp_substr(:name_service_support,'\w+',1,level) is not null) 
GROUP BY id_service_support, name_service_support, price_service_support
HAVING SUM(SIGN(INSTR(UPPER(name_service_support),user_input_word))) > 0 
ORDER BY name_service_support"
Gamber
Дата: 03.05.2010 10:43:46
Прошу прощения, не уточнил... Необходимо чтобы на сервер уходили наименования полей в двойных кавычках...
Т.е. строка в коде выглядит следующим образом:
SELECT \"id_service_support\", \"name_service_support\", \"price_service_support\" FROM
\"service_support\",
(SELECT regexp_substr(upper(:name_service_support),'\w+',1,level) user_input_word 
FROM DUAL connect by regexp_substr(:name_service_support,'\w+',1,level) is not null) 
GROUP BY \"id_service_support\", \"name_service_support\", \"price_service_support\"
HAVING SUM(SIGN(INSTR(UPPER(\"name_service_support\"),user_input_word))) > 0 
ORDER BY \"name_service_support\"
Предложенный вариант не подходит...
n_string
Дата: 03.05.2010 11:08:30
Zachem s kavichkami?
Gamber
Дата: 03.05.2010 11:27:54
n_string,

Такая вот база досталась, наименования полей в нижнем регистре, если вводить наименования без кавычек, то поля не обнаруживаются, т.к. на сервер они уходят в верхнем регистре...
Яростный Меч
Дата: 03.05.2010 13:34:08
@"SELECT ""id_service_support"", ""name_service_support"", ""price_service_support"" FROM
""service_support"",
(SELECT regexp_substr(upper(:name_service_support),'\w+',1,level) user_input_word 
FROM DUAL connect by regexp_substr(:name_service_support,'\w+',1,level) is not null) 
GROUP BY ""id_service_support"", ""name_service_support"", ""price_service_support""
HAVING SUM(SIGN(INSTR(UPPER(""name_service_support""),user_input_word))) > 0 
ORDER BY ""name_service_support"""
ShSerge
Дата: 03.05.2010 13:46:29
Gamber
Такая вот база досталась...

А Вы не интересовались почему так происходит?
Gamber
Дата: 03.05.2010 16:10:56
Вопрос разрешил...
Спасибо за помощь!
ShSerge
Дата: 03.05.2010 16:20:01
Gamber
Вопрос разрешил...
Спасибо за помощь!

Написали бы в чём проблема была, что-ли.