什么是PHP中的微文本,以及tinytext和string之间的区别?

时间:2012-10-15 09:43:11

标签: c# php mysql string int64

我在用php编写的网站上获得了调试报告(easydutyplan解析器的调试信息),我看到了

  

[rowParam] =>阵列
                          (
                              [0] => BIGINT
                              [1] => BIGINT
                              [2] => INT
                              [3] => TINYTEXT
                              [4] => TINYTEXT
                              [5] => TINYTEXT
                          )

tinytext和string之间有什么区别? bigint与C#中的Int64相同吗?

2 个答案:

答案 0 :(得分:3)

这些实际上与PHP无关。它们是MySQL数据类型。

http://dev.mysql.com/doc/refman/5.0/en/blob.html
http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html
http://dev.mysql.com/doc/refman/5.0/en/numeric-types.html

Tinytext用作字段类型以保留L + 1个字节,其中L <1。 2到8日。

答案 1 :(得分:0)

PHP没有这些数据类型。这些看起来像数据库数据类型。如果你使用普通的php debug:var_dump($your_variable);,你可以看到你的结构的PHP数据类型。

这是对php's data types

的引用