gpt4 book ai didi

sql选择连字符右边的数据

转载 作者:行者123 更新时间:2023-12-02 22:14:36 24 4
gpt4 key购买 nike

什么AS400 SQL Select 只检索连字符右边的数据?

shoes - Nike Reds
kids shoes - Converse
Boot - Gold Redwing
mens boot - timberland

最佳答案

您可以使用 POSITION 的组合来做到这一点和 SUBSTR功能:

SELECT SUBSTR(Field, POSITION('-' IN Field) + 1)
FROM YourTable

关于sql选择连字符右边的数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14696087/

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