"timestamp" ?
4 отговора
85 прегледа
Погледни си HELP-а
Обикновенно се има предвид поле от тип TIMESTAMP.
Съдържа време (дата и час) в UNIX формат - 32-битово цяло чисмо, което показва броя на секундите, изминали след 1970-01-01 00:00:00.
Ето една извадка от описанието на MySQL:
`TIMESTAMP[(M)]'
A timestamp. The range is `'1970-01-01 00:00:00'' to sometime in
the year `2037'. *MySQL* displays `TIMESTAMP' values in
`YYYYMMDDHHMMSS', `YYMMDDHHMMSS', `YYYYMMDD' or `YYMMDD' format,
depending on whether `M' is `14' (or missing), `12', `8' or `6',
but allows you to assign values to `TIMESTAMP' columns using
either strings or numbers. A `TIMESTAMP' column is useful for
recording the date and time of an `INSERT' or `UPDATE' operation
because it is automatically set to the date and time of the most
recent operation if you don't give it a value yourself. You can
also set it to the current date and time by assigning it a `NULL'
value. *Note Date and time types::.
Съдържа време (дата и час) в UNIX формат - 32-битово цяло чисмо, което показва броя на секундите, изминали след 1970-01-01 00:00:00.
Ето една извадка от описанието на MySQL:
`TIMESTAMP[(M)]'
A timestamp. The range is `'1970-01-01 00:00:00'' to sometime in
the year `2037'. *MySQL* displays `TIMESTAMP' values in
`YYYYMMDDHHMMSS', `YYMMDDHHMMSS', `YYYYMMDD' or `YYMMDD' format,
depending on whether `M' is `14' (or missing), `12', `8' or `6',
but allows you to assign values to `TIMESTAMP' columns using
either strings or numbers. A `TIMESTAMP' column is useful for
recording the date and time of an `INSERT' or `UPDATE' operation
because it is automatically set to the date and time of the most
recent operation if you don't give it a value yourself. You can
also set it to the current date and time by assigning it a `NULL'
value. *Note Date and time types::.
Отг: "timestamp" ?
hmm. Kak da se prevede?
"Moment vuv vremeto" - sakrateno "Moment"
Tova e edna dosta interesna tema - mozhe bi za otdelen klub.
"Moment vuv vremeto" - sakrateno "Moment"
Tova e edna dosta interesna tema - mozhe bi za otdelen klub.
Отг: Погледни си HELP-а
"Obiknoveno..."
Poznavam nemalko programisti koito sa se oburkvali ot timestamp v mysql misleiki go za timestamp kakto e priet v unix. I propuskat mysql-skite funkcii unix_timestamp() i from_unixtime()
Poznavam nemalko programisti koito sa se oburkvali ot timestamp v mysql misleiki go za timestamp kakto e priet v unix. I propuskat mysql-skite funkcii unix_timestamp() i from_unixtime()