I got a debug report on a site written in php (debug information of an easydutyplan parser) and I saw

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

What is the difference between a tinytext and a string? And is bigint the same as an Int64 in C#?

有帮助吗?

解决方案

These actually have nothing to do with PHP. They are MySQL data types.

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 is used as a field type to reserve L + 1 bytes, where L < 2 to the 8th.

其他提示

PHP does not have these data types. These look like database data types. If you use the normal php debug: var_dump($your_variable); you can see the PHP data types for your structure.

here's a reference to php's data types

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top