Re: Help On Postgresql
От | Jeff Eckermann |
---|---|
Тема | Re: Help On Postgresql |
Дата | |
Msg-id | 01d201c1317f$e0111cb0$279c10ac@INTERNAL обсуждение исходный текст |
Ответ на | Help On Postgresql ("Jaydip" <jaydip@ontrackindia.com>) |
Список | pgsql-sql |
a) Look at "Date/Time Functions" in the docs: specifically, listed under "Functions and Operators" in the Users Guide.
b) "Serial" type will do this. Look under "Numeric Types" , in the "Data Types" section of the Users Guide.
----- Original Message -----From: JaydipSent: Thursday, August 23, 2001 2:50 AMSubject: Help On PostgresqlDear FriendsI am Jaydip Dewanji working as a Sr. Programmer for Ontrack Systems Ltd.I have some questions regarding Postgresql which are listed below:a) How do I retrieve the Year,Month,Day,Hr,Minute or Second value from a Date/DateTime variable.For Example : i> In Oracle to_char(dt,'yyyy') - for extracting the year value from a date variable dtii> In SqlServer datepart(hh,dt) - for extracting the Hour value from a date variable dtb) Can I create an identity column in Postgresql the value of which column will start from 1 say and keepon incrementing by 1 OR how can I serve my purpose in any other way.Please do let me know if any one of you have any solution.RegardsJaydip
В списке pgsql-sql по дате отправления: