Skip to content

Commit e3dba8d

Browse files
author
Radovan Janjic
committed
Update README.md
1 parent 07bf65c commit e3dba8d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,3 +1070,27 @@ Query fail: SELECT * FROM `table` asfd!@#$
10701070
- Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '!@#$' at line 1
10711071
- Call: Function query in C:\xampp\htdocs\Git\PHP_MySQL_wrapper\test.php on line 29
10721072
```
1073+
1074+
| Data Type | Column Type | Range or Description | Storage |
1075+
| --- | --- | --- | --- |
1076+
| Numeric | TinyInt | Signed values from **-128** to **127**<br>Unsigned values from **0** to **255** | 1 byte |
1077+
| Numeric | SmallInt | Signed values from **-32768** to **32767**<br>Unsigned values from **0** to **65535** | 2 bytes |
1078+
| Numeric | MediumInt | Signed values from **-8388608** to **8388607**<br>Unsigned values from **0** to **16777215** | 3 bytes |
1079+
| Numeric | Int | Signed values from **-2147683648** to **2147483647**<br>Unsigned values from **0** to **4294967295** | 4 bytes |
1080+
| Numeric | BigInt | Signed values from **-9223372036854775808** to **9223372036854775807**<br>Unsigned values from **0** to **18446744073709551615** | 8 bytes |
1081+
| Numeric | Float | Minimum non-zero values: 1.175494351E-38<br>Maximum non-zero values: 3.402823466E+38 | 4 bytes |
1082+
| Numeric | Double Float | Minimum non-zero values: 2.2250738585072014E-308<br>Maximum non-zero values: 1.7976931348623157E+308 | 8 bytes |
1083+
| Numeric | Decimal | Varies | Maximum width + 2 bytes |
1084+
| String | Char | Range 1-255 characters | Always filled max width |
1085+
| String | VarChar | Range 1-255 characters | Length of string + 1 byte |
1086+
| String | TinyBlob, TinyText | Max length 255 characters | Length of string + 1 byte |
1087+
| String | Blob, Text | Max length 65535 characters (~64KB of text) | Length of string + 2 bytes |
1088+
| String | MediumBlob, MediumText | Max length 16777216 characters (16MB of text) | Length of string + 3 bytes |
1089+
| String | LongBlob, LongText | Max length 4294967295 characters (4GB of text) | Length of string + 4 bytes |
1090+
| String | Enum *('value','value2',...)* | String object that can have only one set of allowed values | 1 or 2 bytes |
1091+
| String | Set *('value','value2',...)* | String object that can have one or many values of a set of allowed values. | 1, 2, 3, 4, or 8 bytes |
1092+
| Date/Time | Date | 'YY-MM-DD', 'YYYY-MM-DD', 'YYMMDD'<br>Range "1000-01-01" to "9999-12-31" | 3 bytes |
1093+
| Date/Time | Time | 'HH:MM:SS', 'HHMMSS', 'HHMM', 'HH'<br>Range "-838:59:59" to "838:59:59" | 3 bytes |
1094+
| Date/Time | DateTime | 'YYYY-MM-DD HH:MM:SS'<br>"0000-01-01 00:00:00" to "9999-12-31 23:59:59" | 8 bytes |
1095+
| Date/Time | TimeStamp | 19700101000000 to sometime in the year 2037 | 4 bytes |
1096+
| Date/Time | Year | 'YYYY', 'YY' Range "1901" to "2155" | 1 byte |

0 commit comments

Comments
 (0)