DATEADD

Поиск
Список
Период
Сортировка
От Sumita Biswas
Тема DATEADD
Дата
Msg-id 002d01c3f9e5$76765780$2a154d0a@apac.cisco.com
обсуждение исходный текст
Ответ на Re: Postgres DB  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
I had the following code in my MSSQL Stored Procedure:
--Adding 23Hrs 59Mins 59Secs to the ToDate(@ld_ToDate is
DateTime datatype)SET @ld_ToDate = DATEADD(ss, 86399, @ld_ToDate);

I have changed it to the following for Postgres Function:
--Adding 23Hrs 59Mins 59Secs to the ToDate--Here $2 is an input variable(timestamp datatype)    lv_ToDate := $2 +
interval''86399 seconds'';
 


Does this make sense?

Any pointers appreciated.

Thanks,
Sumita



В списке pgsql-sql по дате отправления:

Предыдущее
От: "Sumita Biswas"
Дата:
Сообщение: Re: Error Number in Function
Следующее
От: "Sumita Biswas"
Дата:
Сообщение: EXECUTing QUERY: