Tencent / wcdb

WCDB is a cross-platform database framework developed by WeChat.
Other
10.61k stars 1.39k forks source link

swift中,请问查询条件中如果需要使用两列组合出的新的字段,应该如何拼装呢。 例如SELECT * from table where a||'_'||b in ('1_33'); 其中a和b是整形 #1121

Closed zhangyanforever closed 2 weeks ago

zhangyanforever commented 2 weeks ago

Swift, v2.1.2 如题,如何实现这个sql拼装呢 SELECT * from table where a||'_'||b in ('1_33'); 其中a和b是整形

Qiuwen-chen commented 2 weeks ago

a.concat("_").concat(b).in("1_33")