用户
 找回密码
 入住 CI 中国社区
搜索
查看: 2751|回复: 1
收起左侧

[HELP] 高手帮忙看看,如何取出tab_a,tab_b两个表里面的不重复的记录

[复制链接]
发表于 2011-10-12 13:34:28 | 显示全部楼层 |阅读模式
select * from  tab_a,tab_b where tab_a.title like '%$svar%'order by tab_a.di asc limit 10,20

$svar是模糊查询的变量值
发表于 2011-10-12 14:41:35 | 显示全部楼层
有请:http://www.w3school.com.cn/sql/sql_distinct.asp

本版积分规则