gpt4 book ai didi

mysql - 时间戳列的字段列表中的未知列

转载 作者:行者123 更新时间:2023-11-29 13:09:56 25 4
gpt4 key购买 nike

我在 MySQL 中有一个表,其中包含各种字段,其中一个字段采用 timestamp 格式,当我尝试时,它被称为时间

SELECT time
FROM transactions

以及交易表

id (int)
time (timestamp)
amount (float)

enter image description here

我收到字段列表中的未知列错误。我应该将时间转换为字符串以便能够检索它吗?或者我怎样才能获得所有时间戳?

最佳答案

为此使用反引号

SELECT `time`
FROM transactions;

关于mysql - 时间戳列的字段列表中的未知列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22228669/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com