比如:
select count(*) from message m,ttt_bak tb where m.receiver_id=tb.playerId and m.content like concat('%',tb.giftCode,'%');
可以拼接字符串相当好用。。
本文提供了一个SQL查询示例,展示了如何通过字符串拼接来构造复杂的查询条件。具体使用了concat函数配合like操作符来匹配特定的数据记录。
比如:
select count(*) from message m,ttt_bak tb where m.receiver_id=tb.playerId and m.content like concat('%',tb.giftCode,'%');
可以拼接字符串相当好用。。
4710
1253
2127

被折叠的 条评论
为什么被折叠?