gpt4 book ai didi

mysql - 如何通过消除:?在mysql中将时间转换为数字

转载 作者:行者123 更新时间:2023-11-29 05:04:22 25 4
gpt4 key购买 nike

select '1:55:23' as temptime from dual 

我想消除:来自上述查询预期结果的值

temptime
15523

最佳答案

你能试试吗:

select replace('1:55:23', ':', '') as temptime from dual 

关于mysql - 如何通过消除:?在mysql中将时间转换为数字,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51512339/

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