Create a new table

From: sconeek(at)gmail(dot)com
To: pgsql-general(at)postgresql(dot)org
Subject: Create a new table
Date: 2006-03-13 02:46:00
Message-ID: 1142217960.874929.136250@z34g2000cwc.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hi all,
i am trying to create a postgres table from within my java code.
now the scenario is that the user selects a date range and clicks
submit from my HTML form. now i want to create a table, which contains
records for each hour within that date range as a timestamp and another
column for value which is 0 for each of them.
eg. if the user selects between 2006-03-13 and 2006-03-14, the system
should generate a table with 24 entries/records as type timestamp for
each hour within that date range with corresponding values of 0.

i hope i am able to get my thought across. i have attempted a few
approaches but am not able to get something working. hopefully some of
you geniuses will be able to help me out.

thanks.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message sconeek 2006-03-13 04:18:43 Re: Create a new table
Previous Message Michael Schmidt 2006-03-13 01:41:00 Re: Java Studio Creator