| От | Michael Ma |
|---|---|
| Тема | Unable to identify a right operator '>=' for type 'bpchar' |
| Дата | |
| Msg-id | 392BF383.689FB14B@ficnet.net обсуждение исходный текст |
| Ответы |
Re: Unable to identify a right operator '>=' for type 'bpchar'
|
| Список | pgsql-sql |
Hi, While running the following SQL statement in postgresql-7.0-1 via JDBC, select a.cus_code, a.dlv_code, b.cus_abbr, a.dlv_abbr, a.address, a.tel, a.fax, a.contact from dlv_point a,customer b where ((a.cus_code >= ? and a.cus_code <= ?) or (b.cus_abbr >= ? and b.cus_abbr <= ?)) and trim(b.cus_code)= trim(a.cus_code) order by 1 ; I got the following error message: Unable to identify a right operator '>=' for type 'bpchar' You may meed to add parentheses or an explicit cast. I have never got this kind of message from Informix or Oracle. The data type of the fields in the above statement are all char(n). Can anyone help? The system I am using is Red Hat Linux 6.2 with Kernel 2.2.14-6.1.1 on an i586 Thanks in advance. Michael
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера