Home  >  Article  >  Java  >  Comparison table between Java data types and MySql data types

Comparison table between Java data types and MySql data types

高洛峰
高洛峰Original
2017-01-24 13:50:221836browse

This article describes the comparison table between Java data types and MySql data types. Share it with everyone for your reference, the details are as follows:

Comparison table between Java data types and MySql data types

For bolb, it is generally used for database storage of images. The principle is to convert the image into binary and then process it. Storage method, corresponding to byte[] array in Java.

For the boolen type, in the MySQL database, I personally think it is better to use the int type instead, which is not very convenient for bit operations, especially in projects with web page development, it means 0/1, corresponding to the java type Integer is better.

I hope this article will be helpful to everyone in MySQL database planning.

For more articles related to the comparison table between Java data types and MySql data types, please pay attention to the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn