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

[已解决] odbc下pagination查询

[复制链接]
发表于 2008-3-13 14:03:56 | 显示全部楼层 |阅读模式
/**
         * Limit string
         *
         * Generates a platform-specific LIMIT clause
         *
         * @access        public
         * @param        string        the sql query string
         * @param        integer        the number of rows to limit the query to
         * @param        integer        the offset value
         * @return        string
         */
        function _limit($sql, $limit, $offset)
        {
                // Does ODBC doesn't use the LIMIT clause?
                return $sql;
        }

居然是这个,狂ft
我现在是用access,基本把整个odbc转移成access,但是分页困扰了我
不知道如何实现,纯sql?
发表于 2008-3-13 14:58:36 | 显示全部楼层
 楼主| 发表于 2008-3-13 15:13:19 | 显示全部楼层
哇塞
我看不懂啊
回去试试看,不知道access能不能行
发表于 2010-10-10 11:40:41 | 显示全部楼层
换成了access 了如何写查询记录呀
发表于 2010-10-11 08:19:47 | 显示全部楼层
用ar写的查询各种数据库通用,和mysql一样

本版积分规则