Skip to content
Advertisement

Why do not display values that I have entered in a database table?

Good evening.

I have created a database with ORACLE SQL Developer and am having a small problem.

In the RENTING table that I have created something like this:

I am trying to enter the following data:

cAFM = 10001, vPlateNumber = ‘XKO5434’, OutDate = ’13 / 07/2020 09:30 ‘, InDate = ’18 / 07/2020 08:00’

I type these commands:

I get these results:

without displaying the hours I entered (’09: 30 ‘and ’08: 00’).

If anyone could help me I would be grateful.

Advertisement

Answer

Do this:

It will be fine; the time is there, but your query tool isn’t showing it because it’s formatting to just the date part

https://dbfiddle.uk/?rdbms=oracle_18&fiddle=a0c267946bd451b28edcaeab5e64770d


As an aside, when presenting strings for parsing to other forms, strive to be accurate; the spacing of your date strings does not match the spacing of your format string

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement