"Herv Hnoch" <h(dot)henoch(at)isc84(dot)org> writes:
> CETLOG: statement: PREPARE <unnamed> AS SELECT adm_pat."nip", id_caisse
> caisse FROM adm_pat WHERE nip = '20020523'
> CETERROR: syntax error at or near "caisse" at character 33
"AS" before a column alias is not optional in Postgres.
regards, tom lane