站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
建站程序
开发
服务器
办公软件
开发教程
服务器教程
软件使用教程
运营教程
热门电子书
WordPress教程
宝塔面板教程
CSS教程
Shopify教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
Function Reference/wpdb Class
”(章节)
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
跳转至:
导航
、
搜索
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
高级
特殊字符
帮助
标题
2级
3级
4级
5级
格式
插入
拉丁字母
扩展拉丁字母
国际音标
符号
希腊字母
希腊字母扩展
西里尔字母
阿拉伯字母
扩展阿拉伯字母
希伯来字母
孟加拉语字符集
泰米尔数字和符号
泰卢固语字符集
僧伽罗语字符集
梵文字符集
古吉拉特语字符集
泰语字符集
老挝语
高棉语字母
加拿大原住民音节文字
卢恩
Á
á
À
à
Â
â
Ä
ä
Ã
ã
Ǎ
ǎ
Ā
ā
Ă
ă
Ą
ą
Å
å
Ć
ć
Ĉ
ĉ
Ç
ç
Č
č
Ċ
ċ
Đ
đ
Ď
ď
É
é
È
è
Ê
ê
Ë
ë
Ě
ě
Ē
ē
Ĕ
ĕ
Ė
ė
Ę
ę
Ĝ
ĝ
Ģ
ģ
Ğ
ğ
Ġ
ġ
Ĥ
ĥ
Ħ
ħ
Í
í
Ì
ì
Î
î
Ï
ï
Ĩ
ĩ
Ǐ
ǐ
Ī
ī
Ĭ
ĭ
İ
ı
Į
į
Ĵ
ĵ
Ķ
ķ
Ĺ
ĺ
Ļ
ļ
Ľ
ľ
Ł
ł
Ń
ń
Ñ
ñ
Ņ
ņ
Ň
ň
Ó
ó
Ò
ò
Ô
ô
Ö
ö
Õ
õ
Ǒ
ǒ
Ō
ō
Ŏ
ŏ
Ǫ
ǫ
Ő
ő
Ŕ
ŕ
Ŗ
ŗ
Ř
ř
Ś
ś
Ŝ
ŝ
Ş
ş
Š
š
Ș
ș
Ț
ț
Ť
ť
Ú
ú
Ù
ù
Û
û
Ü
ü
Ũ
ũ
Ů
ů
Ǔ
ǔ
Ū
ū
ǖ
ǘ
ǚ
ǜ
Ŭ
ŭ
Ų
ų
Ű
ű
Ŵ
ŵ
Ý
ý
Ŷ
ŷ
Ÿ
ÿ
Ȳ
ȳ
Ź
ź
Ž
ž
Ż
ż
Æ
æ
Ǣ
ǣ
Ø
ø
Œ
œ
ß
Ð
ð
Þ
þ
Ə
ə
格式
链接
标题
列表
文件
参考
讨论
说明
输入内容
输出结果
斜体
''斜体文字''
斜体文字
粗体
'''粗体文字'''
粗体文字
粗斜体
'''''粗斜体文字'''''
粗斜体文字
== get_col_info – 得到栏信息 == You can retrieve information about the columns of the most recent query result with <code>get_col_info</code>. This can be useful when a function has returned an OBJECT whose properties you don't know. The function will output the desired information from the specified column, or an array with information on ''all'' columns from the query result if no column is specified. 你可以得到最近的<code>get_col_info</code>查询结果的栏信息。当函数返回一个OBJECT,但是你不知道这个OBJECT的属性的时候,这个操作很有用。这个函数会从某个栏中输出你想要的信息,或者如果没有规定栏,函数会返回数组,关于查询结果中''所有的''栏的信息。 %%% <?php $wpdb->get_col_info('type', offset); ?> %%% %%% <?php $wpdb->get_col_info('type', offset); ?> %%% ; type : (string) What information you wish to retrieve. May take on any of the following values (list taken from the [http://justinvincent.com/home/docs/ezsql/ez_sql_help.htm ezSQL docs]). Defaults to '''name'''. ; type : (string)你想要得到什么信息。可能会获得以下任何参数值(列表从[http://justinvincent.com/home/docs/ezsql/ez_sql_help.htm ezSQL docs]中得到)。默认为'''名称'''。 :*name - column name. Default. :*name –栏名称。默认。 :*table - name of the table the column belongs to :*table-栏所属于的某个表格的名称 :*max_length - maximum length of the column :*max_length –栏的最长长度 :*not_null - 1 if the column cannot be NULL :*not_null -1如果栏不能是零 :*primary_key - 1 if the column is a primary key :*primary_key – 1如果栏是个primary key :*unique_key - 1 if the column is a unique key :*unique_key – 1如果栏是个unique key :*multiple_key - 1 if the column is a non-unique key :*multiple_key – 1如果栏是个非唯一的key :*numeric - 1 if the column is numeric :*numeric – 1如果栏是数字的 :*blob - 1 if the column is a BLOB :*blob – 1如果栏是个BLOB :*type - the type of the column :*type –栏的类型 :*unsigned - 1 if the column is unsigned :*unsigned – 1如果栏没有符号 :*zerofill - 1 if the column is zero-filled :*zerofill – 1如果栏是zero-filled ; offset : (integer) Specify the column from which to retrieve information (with '''0''' being the first column). Defaults to '''-1'''. ; offset : (integer)指定从哪个栏中得到信息('''0''' 代表第一个栏)。默认为'''-1'''。 :*-1 - Retrieve information from all columns. Output as array. Default. :*-1 –返回所有栏中得到的信息。作为数组输出。默认。 :*Non-negative integer - Retrieve information from specified column ('''0''' being the first). :*非负数的整数 –返回某个特别的栏中的信息('''0''' 代表第一个栏)。
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)