如何从此示例值中获取子字符串:
john.abc_1234
Run Code Online (Sandbox Code Playgroud)
我希望它返回john.abc.所以基本上我们需要删除之后的所有信息_.
更多例子:1234_abc
我需要在三列上查询具有过滤条件的表:
select *
from table a
where a.order = car
and a.color !=red
or a.automatic !=auto
Run Code Online (Sandbox Code Playgroud)
这只是检查第一个条件而忽略第二个条件.
我只是无法理解它:(