R
Railway14mo ago
$P

How do you put a time in a Postgres database?

Hello, I need help to be able to put a time in a column of a table in postgres, it appears as invalid date
29 Replies
Percy
Percy14mo ago
Project ID: 2d6389fb-0789-40df-b305-240ed5a8129a
$P
$POP14mo ago
2d6389fb-0789-40df-b305-240ed5a8129a
Atrox
Atrox14mo ago
what data type are you using for your column?
$P
$POP14mo ago
TIME Is that data type okay?
Atrox
Atrox14mo ago
probably, it does exist
$P
$POP14mo ago
but I put for example 7:00 and it shows invalid date
Atrox
Atrox14mo ago
I think a regular timestamp might be easier to work with though
Atrox
Atrox14mo ago
PostgreSQL Documentation
8.5. Date/Time Types
8.5. Date/Time Types # 8.5.1. Date/Time Input 8.5.2. Date/Time Output 8.5.3. Time Zones 8.5.4. Interval Input 8.5.5. Interval Output PostgreSQL supports …
$P
$POP14mo ago
thanks I see it now
Atrox
Atrox14mo ago
I think for TIME you might have to specify HH:MM:SS at a minimum for it to be valid or maybe HH:MM is enough
$P
$POP14mo ago
I already tried and nothing, I have entered 7:00:00, 7:00, 7:00 UTC and invalid date appears
$P
$POP14mo ago
will this be?
No description
$P
$POP14mo ago
But what does the p mean or how does i can put in the table? Im new with postgres
Brody
Brody14mo ago
where are you inputting this data into your database
$P
$POP14mo ago
in a time table with a column of type TIME
Brody
Brody14mo ago
yes but what software are you using
$P
$POP14mo ago
software? im using railway in web
Brody
Brody14mo ago
the data tab is only meant to give you a general overview of your data, do not use it for data entry
$P
$POP14mo ago
ohh, and how can I do it?
$P
$POP14mo ago
I'm doing it here
No description
$P
$POP14mo ago
where invalid date is is where I'm trying to put a time
Brody
Brody14mo ago
use database software like pgadmin
$P
$POP14mo ago
So I can't add an hour there only if I have pgadmin?
Brody
Brody14mo ago
the data tab is only meant to give you a general overview of your data, use pgadmin for data entry
$P
$POP14mo ago
ok, thank you very much, I'm already downloading it After i download it, just set a time like 7:00 and it would be ready?
Brody
Brody14mo ago
yes it will
$P
$POP14mo ago
Here is it the remote access option or the other one?
No description
Brody
Brody14mo ago
remote
$P
$POP14mo ago
okey
Want results from more Discord servers?
Add your server