Home  >  Article  >  php教程  >  thinkphp db2驱动文件

thinkphp db2驱动文件

WBOY
WBOYOriginal
2016-06-07 11:45:001194browse

自己改了一个db2驱动文件 DbDb2.class.php。实现基本功能。分页不支持。
数据库连接配置参数,修改config.php文件    'DB_TYPE'           =>  'Db2',<br>     'DB_HOST'           =>  '100.70.1.47', //DB2 IP地址<br>     'DB_NAME'           =>  'dispen',<br>     'DB_USER'           =>  'db2ins',<br>     'DB_PWD'            =>  'db2in',<br>     'DB_PORT'           =>  '50000',DbDb2.class.php文件放在:ThinkPHP\Extend\Driver\Db目录下。

对于分页操作:$User =  M();<br> $xlist=$User->query("select tempc007.*, rownumber() over (order by SEACODE asc) as rowid from tempc007 where rowid>=开始号  and rowid 其他如正常操作。<br> <p class="attach"> <img src="/Public/Images/extension/common.gif" style="max-width:90%" style="max-width:90%" border="0" alt="附件" align="absmiddle"> thinkphp-db2驱动.rar <span class="date">( 5.53 KB 下载:179 次 )</span> </p> <p class="da_word">AD:真正免费,域名+虚机+企业邮箱=0元 </p>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn