How to avoid loss precision for datetime type in sqlalchemy?

Question:

I’m a newbie in python and I got this issue. I have a column in my database which has type is datetime and precision is 23 (Ex: 2022-08-22 11:18:00.000)
When I retrive data with sqlalchemy, it seem convert to python datetime (2022-08-22 11:18:00). How can I avoid this and get original data? I have no idea now
Thank you for reading my question

Asked By: thuc.ta

||

Answers:

Maybe there is a presentation issue – zeroed milliseconds are not show. Try with a different value.

Answered By: pkorbut
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.