Return a datetime value based on the arguments:
SELECT TIMESTAMP("2017-07-23", "13:10:11");
Try it Yourself »
The TIMESTAMP() function returns a datetime value based on a date or datetime value.
Note: If there are specified two arguments with this function, it first adds the second argument to the first, and then returns a datetime value.
TIMESTAMP(
expression,
time)
Parameter | Description |
---|---|
expression | Required. A date or datetime value |
time | Optional. A time value to add to expression |
Works in: | From MySQL 4.0 |
---|
Return a datetime value based on the arguments:
SELECT TIMESTAMP("2017-07-23");
Try it Yourself »
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!