kkito 发表于 2008-3-13 14:03:56

odbc下pagination查询

/**
       * 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?

Hex 发表于 2008-3-13 14:58:36

请看 MSSQL 分页方法。

http://codeigniter.org.cn/forums/thread-72-1-2.html

kkito 发表于 2008-3-13 15:13:19

哇塞
我看不懂啊
回去试试看,不知道access能不能行

sueijing 发表于 2010-10-10 11:40:41

换成了access 了如何写查询记录呀

visvoy 发表于 2010-10-11 08:19:47

用ar写的查询各种数据库通用,和mysql一样
页: [1]
查看完整版本: odbc下pagination查询