gpt4 book ai didi

mysql - 如何将数字转换为文本? (在 mySQL 中)

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

我正在尝试将表“集合”中的 0 和 1 转换为 SQL Server 中的“0”为“否”,“1”为"is",我已经研究了各个地方,但我仍然没有找到了一个具体的答案。任何帮助将不胜感激

最佳答案

select
case
when Yourfield = 0 then 'no'
when Yourfield = 1 then 'yes'
end as GotIt
from
collection

关于mysql - 如何将数字转换为文本? (在 mySQL 中),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27549008/

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