W
W
wawa2018-02-28 14:10:32
SQL
wawa, 2018-02-28 14:10:32

How do you name fields like timestamp?

Let's say for the post publication date in the post table:
pub_date / pub_time? but it's not just a date or time, but a date and time
pub_datetime / pub_timestamp? somehow a lot of letters
What if you do not specify the type in the suffix:
published? and if you also need the fact of publication published as boolean?
maybe published_dt or published_at?
I admit that I bother a lot, but suddenly there is a best practice among experienced developers in this regard and I will know for sure that kittens will not die because of me.
And yes, I googled, but I didn’t see a consensus ( https://dba.stackexchange.com/questions/2677/how-s...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arman, 2018-02-28
@wawa

I have published_at - timestamp, published_date and published_time - derived properties, published - status (boolean)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question