如何匹配值与逗号在Sqlite数据库与不同的列,并返回与逗号再次



我有一个三列的数据库,就像这里

code      name           details
nd      new dear        sdadasd
dn      no dear         fdsfdsf
bs      bhai sahab      vdfgdfgdfg

现在我有了像

这样的逗号

"nd, new dear"

如何与数据库中的不同列匹配以及如何从数据库中获得相同的值

"nd, new dear"

请建议查询

SELECT code || ', ' || details AS val
FROM mytable 
WHERE code || ', ' || details = 'nd, new dear'

最新更新