一、Oracle数据库的数据类型总结
| 1.字符型 | |
| type | lenth |
| char(定长) | 2000byte |
| varchar2(变长) | 4000byte |
| clob | 4G |
| 2.数字型 | |
| number | -10的38次方到10的38次方 |
| 3.日期型 | |
| date | 7byte |
| timestamp | 7(精度为0)或11(精度大于0)byte |
| 4.图片型 | |
| blob(二进制) | 4G |
| 1.字符型 | |
| type | lenth |
| char | 255bype |
| varchar | 8kb |
| tinyblod | 255byte |
| tinytext | 255byte |
| blod | 8kb |
| text | 8kb |
| mediumblod | 2M |
| mediumtext | 2M |
| longblod | 500M |
| longtext | 500M |
| 2.数字型 | |
| tinyint | 1byte |
| smallint | 2byte |
| mediumint | 3byte |
| int/integer | 4byte |
| bigint | 8byte |
| float | 4byte |
| double | 8byte |
| decimal | 对DECIMAL(M,D) ,如果M>D,为M+2否则为D+2 |
| 3.日期型 | |
| date | 3byte |
| time | 3byte |
| year | 1byte |
| datetime | 8byte |
| timestamp | 4byte |
本文详细对比了Oracle与MySQL数据库中各种数据类型的使用特点,包括字符型、数字型及日期型等,并提供了每种类型的具体长度范围。
790

被折叠的 条评论
为什么被折叠?



