在SQL中对列进行筛选。

huangapple go评论69阅读模式
英文:

Filter within column in SQL

问题

我可以帮你翻译这段内容。以下是翻译结果:

我在MySQL数据库中有一个名为Sample的表格。
在这个表格中,有一个特定的列名为"Claims"。
在这个列中,数据从"Payment"开始。

例如,
在SQL中对列进行筛选。

请问如何筛选出只包含"BSA"、"TLS"和"SSL"的数据?

英文:

I've a table name: Sample in MySql Database
Inside this table, there is particular column "Claims"
Within this column the data starts from Payment

Example,
在SQL中对列进行筛选。

Can you please let me know how to filter out data that has only "BSA" and "TLS" and "SSL"

答案1

得分: 0

以下是翻译好的内容:

选择 * 从样本
其中 Claims 包含 'BSA' 或 Claims 包含 'TLS' 或 Claims 包含 'SSL'

英文:
select * from Sample
where Claims like '%BSA%' or Claims like '%TLS%' or Claims like '%SSL%'

huangapple
  • 本文由 发表于 2023年8月9日 14:02:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/76864961.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定