PHP mysqli_fetch_field数据类型 [英] PHP mysqli_fetch_field data type

查看:54
本文介绍了PHP mysqli_fetch_field数据类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一些帮助来跟踪有关mysqli结果对象的fetch_field方法中信息的一些具体信息.

I need some help tracking down a bit of nitty gritty information on the information in the fetch_field method of a mysqli result object.

特别是 type 属性-来自文档,似乎该字段返回了整数...

Specifically the type property - from the documentation it would seem that this field returns an integer...

太好了!

我似乎找不到一个可以让我将数字转换为相应数据类型的表.我什至不确定我要查找 php 还是 mysql 特定信息.推来推去,我可以自己绘制它,但我宁愿有人将我指向实际文档.

I just can't seem to find a table that will let me translate the number to it's respective data type. I'm not even sure if I'm looking for php or mysql specific information. Push come to shove I can map it out myself, but I'd much rather if someone can point me to the actual documentation.

我想念什么?

推荐答案

您可以将此数字与以下列出的各种预定义常量进行比较:

You can compare this number to various predefined constants, which are listed here:

http://www.php.net/manual/en/mysqli. constants.php

例如MYSQLI_TYPE_SHORT

这篇关于PHP mysqli_fetch_field数据类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆