sim vai precisar

SELECT "SYSDATE"();

a alteração também é valida.

2014-09-24 16:45 GMT-03:00 Alexsandro Haag <[email protected]>:

>
> On 24-09-2014 16:29, Thomaz Luiz Santos wrote:
>
>> é isso que você precisa ????
>>
>> CREATE FUNCTION "sysdate"() RETURNS date AS
>> 'select current_date;'
>> LANGUAGE sql VOLATILE;
>>
>
> Assim ele vai precisar usar a função sysdate sempre com parenteses.
>
> Uma alternativa, se a intenção é compatibilizar com o Oracle, seria
> substituir os SYSDATE no Oracle por CURRENT_DATE que irá funcionar em ambos.
>
> Alex
>
>
>
>
> _______________________________________________
> pgbr-geral mailing list
> [email protected]
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
>



-- 
------------------------------
Thomaz Luiz Santos
Linux User: #359356
http://thomaz.santos.googlepages.com/
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a