0
I created a diagram of a gym that has schedules and days, also created two tables on Oracle, which are these:
create table dia_semana (
coddia number (6) primary key,
dia DATE);
create table horario (
codhorario number (8) primary key,
horainicio ,
horafim );
Obviously they are not finished.
The type of data DATE
allows data display in format YYYY-MM-DD
am I correct?
How I would make him show in Brazilian format?
I would also like to know if there is any datatype that only prints data in time format and not date/time, if any, which?
Where exactly would I implement this to_char, something like that?
dia DATE to_char (dia, 'DD/MM/AAAA');
– user315139192111315
In your diagram will not change anything, keep putting the date and time fields with the type
DATE
. This would be in the query of your table, through a SELECT.– Bruno Warmling