Home > Backend Development > PHP Tutorial > thinkphp 表名 大小写 诀窍

thinkphp 表名 大小写 诀窍

WBOY
Release: 2016-06-13 12:14:39
Original
1192 people have browsed it

thinkphp 表名 大小写 窍门

<span style="color: #cc7833;">我们有一个表<span style="color: #cc7833;"><span style="color: #6a8759;"><span style="color: #cc7832;">auth_group_access</span></span></span>,那么如何使用呢?<br>在使用M方法时,对于带下划线的表名,可以采用如下方法。<br><br>M(<span style="color: #6a8759;">'AuthGroupAccess')<span style="color: #cc7832;">;<br>对应sql语句SQL: SHOW COLUMNS FROM `auth_group_access` [ RunTime:0.009198s ]<br><br><br></span></span></span>
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template