gpt4 book ai didi

mysql - 如何选择像 'x%'这样不包含字母的位置?

转载 作者:行者123 更新时间:2023-11-29 10:52:30 26 4
gpt4 key购买 nike

select * from mytable where col like 'xy.%';

如何排除“.”后包含字母“y”的结果?

示例:显示结果“xy.abc”但是排除结果“xy.aybc”

最佳答案

尝试以下操作:

Select * From mytable Where col like 'xy.%' AND col NOT like 'xy.%y%';

关于mysql - 如何选择像 'x%'这样不包含字母的位置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43476406/

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