| От | Martin Hickling |
|---|---|
| Тема | ADO syntax |
| Дата | |
| Msg-id | 1043997844.1207.369.camel@server обсуждение |
| Список | pgadmin-support |
Hi All, Can anybody help? I have setup PostgreSQL 7.1 on a RedHat 7.2 machine. I finally managed the configuration and have an ADO connection to a Database imported from MS Sql server. If I retrieve a record set with "SELECT DISTINCT lastname AS alpha FROM customers" I can manipulate the records and without the DISTINCT can add new. If I want only the first letter form each of the customers names I tried using "SELECT DISTINCT SUBSTR(lastname FROM 1 FOR 1) AS alpha FROM customers" the database returns 'parse error at or near FROM'. As the first string works the error has to be with the syntax of SUBSTR. Does anybody know how to format the string so that the database will accept the function. Presumably I will have the same problem trying to use any of the functions. Martin
В списке pgadmin-support по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера