|孤注一掷. 发表于 2012-9-10 16:59:00

CI 提供的数据库查询语句有没有 union 这个功能

CI 提供的数据库查询语句有没有 union 这个功能

比如我用MYSQL 这么写 (select * from a)union (select (*,z) from b)

CI里我要怎么写呢?

卓迪 发表于 2012-9-10 17:05:32


$query = "... union ...";
$result = $this->db->query($query);

chenhan 发表于 2012-9-13 22:06:30

楼上正解

|孤注一掷. 发表于 2012-9-17 08:41:14

这么写我无法进行翻页啊

wwwhx110com 发表于 2015-3-22 01:05:31

无解啊
页: [1]
查看完整版本: CI 提供的数据库查询语句有没有 union 这个功能