MySQL与Java JDBC数据类型对照

 MySQL数据类型JAVA数据类型JDBC TYPE
BIGINTLongBIGINT
TINYINTByteTINYINT
SMALLINTShortSMALLINT
MEDIUMINTIntegerINTEGER
INTEGERIntegerINTEGER
INTIntegerINTEGER
FLOATFloatREAL
DOUBLEDoubleDOUBLE
DECIMALBigDecimalDECIMAL
NUMERICBigDecimalNUMERIC
CHARStringCHAR
VARCHARStringVARCHAR
TINYBLOBbyte[]BINARY
TINYTEXTStringVARCHAR
BLOBbyte[]BINARY
TEXTStringLONGVARCHAR
MEDIUMBLOBbyte[]LONGVARBINARY
MEDIUMTEXTStringLONGVARCHAR
LONGBLOBbyte[]LONGVARBINARY
LONGTEXTStringLONGVARCHAR
DATEDateDATE
TIMEDateTIME
YEARDateDATE
DATETIMEDateTIMESTAMP
TIMESTAMPDateTIMESTAMP

文件:mysql-connector-java-8.0.11.jar
类名:com.mysql.cj.MysqlType

   /*** DECIMAL[(M[,D])] [UNSIGNED] [ZEROFILL]* A packed "exact" fixed-point number. M is the total number of digits (the precision) and D is the number of digits* after the decimal point (the scale). The decimal point and (for negative numbers) the "-" sign are not counted in M.* If D is 0, values have no decimal point or fractional part. The maximum number of digits (M) for DECIMAL is 65.* The maximum number of supported decimals (D) is 30. If D is omitted, the default is 0. If M is omitted, the default is 10.* * Protocol: FIELD_TYPE_DECIMAL = 0* Protocol: FIELD_TYPE_NEWDECIMAL = 246** These types are synonyms for DECIMAL:* DEC[(M[,D])] [UNSIGNED] [ZEROFILL],* NUMERIC[(M[,D])] [UNSIGNED] [ZEROFILL],* FIXED[(M[,D])] [UNSIGNED] [ZEROFILL]*/DECIMAL("DECIMAL", Types.DECIMAL, BigDecimal.class, MysqlType.FIELD_FLAG_ZEROFILL, MysqlType.IS_DECIMAL, 65L, "[(M[,D])] [UNSIGNED] [ZEROFILL]"),/*** DECIMAL[(M[,D])] UNSIGNED [ZEROFILL]* * @see MysqlType#DECIMAL*/DECIMAL_UNSIGNED("DECIMAL UNSIGNED", Types.DECIMAL, BigDecimal.class, MysqlType.FIELD_FLAG_UNSIGNED | MysqlType.FIELD_FLAG_ZEROFILL, MysqlType.IS_DECIMAL, 65L, "[(M[,D])] [UNSIGNED] [ZEROFILL]"),/*** TINYINT[(M)] [UNSIGNED] [ZEROFILL]* A very small integer. The signed range is -128 to 127. The unsigned range is 0 to 255.* * Protocol: FIELD_TYPE_TINY = 1*/TINYINT("TINYINT", Types.TINYINT, Integer.class, MysqlType.FIELD_FLAG_ZEROFILL, MysqlType.IS_DECIMAL, 3L, "[(M)] [UNSIGNED] [ZEROFILL]"),/*** TINYINT[(M)] UNSIGNED [ZEROFILL]* * @see MysqlType#TINYINT*/TINYINT_UNSIGNED("TINYINT UNSIGNED", Types.TINYINT, Integer.class, MysqlType.FIELD_FLAG_UNSIGNED | MysqlType.FIELD_FLAG_ZEROFILL, MysqlType.IS_DECIMAL, 3L, "[(M)] [UNSIGNED] [ZEROFILL]"),/*** BOOL, BOOLEAN* These types are synonyms for TINYINT(1). A value of zero is considered false. Nonzero values are considered true* * BOOLEAN is converted to TINYINT(1) during DDL execution i.e. it has the same precision=3. Thus we have to* look at full data type name and convert TINYINT to BOOLEAN (or BIT) if it has "(1)" length specification.* * Protocol: FIELD_TYPE_TINY = 1*/BOOLEAN("BOOLEAN", Types.BOOLEAN, Boolean.class, 0, MysqlType.IS_NOT_DECIMAL, 3L, ""),/*** SMALLINT[(M)] [UNSIGNED] [ZEROFILL]* A small integer. The signed range is -32768 to 32767. The unsigned range is 0 to 65535.* * Protocol: FIELD_TYPE_SHORT = 2*/SMALLINT("SMALLINT", Types.SMALLINT, Integer.class, MysqlType.FIELD_FLAG_ZEROFILL, MysqlType.IS_DECIMAL, 5L, "[(M)] [UNSIGNED] [ZEROFILL]"),/*** SMALLINT[(M)] UNSIGNED [ZEROFILL]* * @see MysqlType#SMALLINT*/SMALLINT_UNSIGNED("SMALLINT UNSIGNED", Types.SMALLINT, Integer.class, MysqlType.FIELD_FLAG_UNSIGNED | MysqlType.FIELD_FLAG_ZEROFILL, MysqlType.IS_DECIMAL, 5L, "[(M)] [UNSIGNED] [ZEROFILL]"),/*** INT[(M)] [UNSIGNED] [ZEROFILL]* A normal-size integer. The signed range is -2147483648 to 2147483647. The unsigned range is 0 to 4294967295.* * Protocol: FIELD_TYPE_LONG = 3* * INTEGER[(M)] [UNSIGNED] [ZEROFILL] is a synonym for INT.*/INT("INT", Types.INTEGER, Integer.class, MysqlType.FIELD_FLAG_ZEROFILL, MysqlType.IS_DECIMAL, 10L, "[(M)] [UNSIGNED] [ZEROFILL]"),/*** INT[(M)] UNSIGNED [ZEROFILL]* * @see MysqlType#INT*/INT_UNSIGNED("INT UNSIGNED", Types.INTEGER, Long.class, MysqlType.FIELD_FLAG_UNSIGNED | MysqlType.FIELD_FLAG_ZEROFILL, MysqlType.IS_DECIMAL, 10L, "[(M)] [UNSIGNED] [ZEROFILL]"),/*** FLOAT[(M,D)] [UNSIGNED] [ZEROFILL]* A small (single-precision) floating-point number. Permissible values are -3.402823466E+38 to -1.175494351E-38, 0,* and 1.175494351E-38 to 3.402823466E+38. These are the theoretical limits, based on the IEEE standard. The actual* range might be slightly smaller depending on your hardware or operating system.* * M is the total number of digits and D is the number of digits following the decimal point. If M and D are omitted,* values are stored to the limits permitted by the hardware. A single-precision floating-point number is accurate to* approximately 7 decimal places.* * Protocol: FIELD_TYPE_FLOAT = 4* * Additionally:* FLOAT(p) [UNSIGNED] [ZEROFILL]* A floating-point number. p represents the precision in bits, but MySQL uses this value only to determine whether* to use FLOAT or DOUBLE for the resulting data type. If p is from 0 to 24, the data type becomes FLOAT with no M or D values.* If p is from 25 to 53, the data type becomes DOUBLE with no M or D values. The range of the resulting column is the same as* for the single-precision FLOAT or double-precision DOUBLE data types.*/FLOAT("FLOAT", Types.REAL, Float.class, MysqlType.FIELD_FLAG_ZEROFILL, MysqlType.IS_DECIMAL, 12L, "[(M,D)] [UNSIGNED] [ZEROFILL]"),/*** FLOAT[(M,D)] UNSIGNED [ZEROFILL]* * @see MysqlType#FLOAT*/FLOAT_UNSIGNED("FLOAT UNSIGNED", Types.REAL, Float.class, MysqlType.FIELD_FLAG_UNSIGNED | MysqlType.FIELD_FLAG_ZEROFILL, MysqlType.IS_DECIMAL, 12L, "[(M,D)] [UNSIGNED] [ZEROFILL]"),/*** DOUBLE[(M,D)] [UNSIGNED] [ZEROFILL]* A normal-size (double-precision) floating-point number. Permissible values are -1.7976931348623157E+308 to* -2.2250738585072014E-308, 0, and 2.2250738585072014E-308 to 1.7976931348623157E+308. These are the theoretical limits,* based on the IEEE standard. The actual range might be slightly smaller depending on your hardware or operating system.* * M is the total number of digits and D is the number of digits following the decimal point. If M and D are omitted,* values are stored to the limits permitted by the hardware. A double-precision floating-point number is accurate to* approximately 15 decimal places.* * Protocol: FIELD_TYPE_DOUBLE = 5* * These types are synonyms for DOUBLE:* DOUBLE PRECISION[(M,D)] [UNSIGNED] [ZEROFILL],* REAL[(M,D)] [UNSIGNED] [ZEROFILL]. Exception: If the REAL_AS_FLOAT SQL mode is enabled, REAL is a synonym for FLOAT rather than DOUBLE.*/DOUBLE("DOUBLE", Types.DOUBLE, Double.class, MysqlType.FIELD_FLAG_ZEROFILL, MysqlType.IS_DECIMAL, 22L, "[(M,D)] [UNSIGNED] [ZEROFILL]"),/*** DOUBLE[(M,D)] UNSIGNED [ZEROFILL]* * @see MysqlType#DOUBLE*/DOUBLE_UNSIGNED("DOUBLE UNSIGNED", Types.DOUBLE, Double.class, MysqlType.FIELD_FLAG_UNSIGNED | MysqlType.FIELD_FLAG_ZEROFILL, MysqlType.IS_DECIMAL, 22L, "[(M,D)] [UNSIGNED] [ZEROFILL]"),/*** FIELD_TYPE_NULL = 6*/NULL("NULL", Types.NULL, Object.class, 0, MysqlType.IS_NOT_DECIMAL, 0L, ""),/*** TIMESTAMP[(fsp)]* A timestamp. The range is '1970-01-01 00:00:01.000000' UTC to '2038-01-19 03:14:07.999999' UTC.* TIMESTAMP values are stored as the number of seconds since the epoch ('1970-01-01 00:00:00' UTC).* A TIMESTAMP cannot represent the value '1970-01-01 00:00:00' because that is equivalent to 0 seconds* from the epoch and the value 0 is reserved for representing '0000-00-00 00:00:00', the "zero" TIMESTAMP value.* An optional fsp value in the range from 0 to 6 may be given to specify fractional seconds precision. A value* of 0 signifies that there is no fractional part. If omitted, the default precision is 0.* * Protocol: FIELD_TYPE_TIMESTAMP = 7* */// TODO If MySQL server run with the MAXDB SQL mode enabled, TIMESTAMP is identical with DATETIME. If this mode is enabled at the time that a table is created, TIMESTAMP columns are created as DATETIME columns.// As a result, such columns use DATETIME display format, have the same range of values, and there is no automatic initialization or updating to the current date and timeTIMESTAMP("TIMESTAMP", Types.TIMESTAMP, Timestamp.class, 0, MysqlType.IS_NOT_DECIMAL, 26L, "[(fsp)]"),/*** BIGINT[(M)] [UNSIGNED] [ZEROFILL]* A large integer. The signed range is -9223372036854775808 to 9223372036854775807. The unsigned range is 0 to 18446744073709551615.* * Protocol: FIELD_TYPE_LONGLONG = 8* * SERIAL is an alias for BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE.*/BIGINT("BIGINT", Types.BIGINT, Long.class, MysqlType.FIELD_FLAG_ZEROFILL, MysqlType.IS_DECIMAL, 19L, "[(M)] [UNSIGNED] [ZEROFILL]"),/*** BIGINT[(M)] UNSIGNED [ZEROFILL]* * @see MysqlType#BIGINT*/BIGINT_UNSIGNED("BIGINT UNSIGNED", Types.BIGINT, BigInteger.class, MysqlType.FIELD_FLAG_UNSIGNED | MysqlType.FIELD_FLAG_ZEROFILL, MysqlType.IS_DECIMAL, 20L, "[(M)] [UNSIGNED] [ZEROFILL]"),/*** MEDIUMINT[(M)] [UNSIGNED] [ZEROFILL]* A medium-sized integer. The signed range is -8388608 to 8388607. The unsigned range is 0 to 16777215.* * Protocol: FIELD_TYPE_INT24 = 9*/MEDIUMINT("MEDIUMINT", Types.INTEGER, Integer.class, MysqlType.FIELD_FLAG_ZEROFILL, MysqlType.IS_DECIMAL, 7L, "[(M)] [UNSIGNED] [ZEROFILL]"),/*** MEDIUMINT[(M)] UNSIGNED [ZEROFILL]* * @see MysqlType#MEDIUMINT*/MEDIUMINT_UNSIGNED("MEDIUMINT UNSIGNED", Types.INTEGER, Integer.class, MysqlType.FIELD_FLAG_UNSIGNED | MysqlType.FIELD_FLAG_ZEROFILL, MysqlType.IS_DECIMAL, 8L, "[(M)] [UNSIGNED] [ZEROFILL]"),/*** DATE* A date. The supported range is '1000-01-01' to '9999-12-31'. MySQL displays DATE values in 'YYYY-MM-DD' format,* but permits assignment of values to DATE columns using either strings or numbers.* * Protocol: FIELD_TYPE_DATE = 10*/DATE("DATE", Types.DATE, Date.class, 0, MysqlType.IS_NOT_DECIMAL, 10L, ""),/*** TIME[(fsp)]* A time. The range is '-838:59:59.000000' to '838:59:59.000000'. MySQL displays TIME values in* 'HH:MM:SS[.fraction]' format, but permits assignment of values to TIME columns using either strings or numbers.* An optional fsp value in the range from 0 to 6 may be given to specify fractional seconds precision. A value* of 0 signifies that there is no fractional part. If omitted, the default precision is 0.* * Protocol: FIELD_TYPE_TIME = 11*/TIME("TIME", Types.TIME, Time.class, 0, MysqlType.IS_NOT_DECIMAL, 16L, "[(fsp)]"),/*** DATETIME[(fsp)]* A date and time combination. The supported range is '1000-01-01 00:00:00.000000' to '9999-12-31 23:59:59.999999'.* MySQL displays DATETIME values in 'YYYY-MM-DD HH:MM:SS[.fraction]' format, but permits assignment of values to* DATETIME columns using either strings or numbers.* An optional fsp value in the range from 0 to 6 may be given to specify fractional seconds precision. A value* of 0 signifies that there is no fractional part. If omitted, the default precision is 0.* * Protocol: FIELD_TYPE_DATETIME = 12*/DATETIME("DATETIME", Types.TIMESTAMP, Timestamp.class, 0, MysqlType.IS_NOT_DECIMAL, 26L, "[(fsp)]"),/*** YEAR[(4)]* A year in four-digit format. MySQL displays YEAR values in YYYY format, but permits assignment of* values to YEAR columns using either strings or numbers. Values display as 1901 to 2155, and 0000.* Protocol: FIELD_TYPE_YEAR = 13*/YEAR("YEAR", Types.DATE, Date.class, 0, MysqlType.IS_NOT_DECIMAL, 4L, "[(4)]"),/*** [NATIONAL] VARCHAR(M) [CHARACTER SET charset_name] [COLLATE collation_name]* A variable-length string. M represents the maximum column length in characters. The range of M is 0 to 65,535.* The effective maximum length of a VARCHAR is subject to the maximum row size (65,535 bytes, which is shared among* all columns) and the character set used. For example, utf8 characters can require up to three bytes per character,* so a VARCHAR column that uses the utf8 character set can be declared to be a maximum of 21,844 characters.* * MySQL stores VARCHAR values as a 1-byte or 2-byte length prefix plus data. The length prefix indicates the number* of bytes in the value. A VARCHAR column uses one length byte if values require no more than 255 bytes, two length* bytes if values may require more than 255 bytes.* * Note* MySQL 5.7 follows the standard SQL specification, and does not remove trailing spaces from VARCHAR values.* * VARCHAR is shorthand for CHARACTER VARYING. NATIONAL VARCHAR is the standard SQL way to define that a VARCHAR* column should use some predefined character set. MySQL 4.1 and up uses utf8 as this predefined character set.* NVARCHAR is shorthand for NATIONAL VARCHAR.* * Protocol: FIELD_TYPE_VARCHAR = 15* Protocol: FIELD_TYPE_VAR_STRING = 253*/VARCHAR("VARCHAR", Types.VARCHAR, String.class, 0, MysqlType.IS_NOT_DECIMAL, 65535L, "(M) [CHARACTER SET charset_name] [COLLATE collation_name]"),/*** VARBINARY(M)* The VARBINARY type is similar to the VARCHAR type, but stores binary byte strings rather than nonbinary* character strings. M represents the maximum column length in bytes.* * Protocol: FIELD_TYPE_VARCHAR = 15* Protocol: FIELD_TYPE_VAR_STRING = 253*/VARBINARY("VARBINARY", Types.VARBINARY, null, 0, MysqlType.IS_NOT_DECIMAL, 65535L, "(M)"),/*** BIT[(M)]* A bit-field type. M indicates the number of bits per value, from 1 to 64. The default is 1 if M is omitted.* Protocol: FIELD_TYPE_BIT = 16*/BIT("BIT", Types.BIT, Boolean.class, 0, MysqlType.IS_DECIMAL, 1L, "[(M)]"), // TODO maybe precision=8 ?/*** The size of JSON documents stored in JSON columns is limited to the value of the max_allowed_packet system variable (max value 1073741824).* (While the server manipulates a JSON value internally in memory, it can be larger; the limit applies when the server stores it.)* * Protocol: FIELD_TYPE_BIT = 245*/JSON("JSON", Types.LONGVARCHAR, String.class, 0, MysqlType.IS_NOT_DECIMAL, 1073741824L, ""),/*** ENUM('value1','value2',...) [CHARACTER SET charset_name] [COLLATE collation_name]* An enumeration. A string object that can have only one value, chosen from the list of values 'value1',* 'value2', ..., NULL or the special '' error value. ENUM values are represented internally as integers.* An ENUM column can have a maximum of 65,535 distinct elements. (The practical limit is less than 3000.)* A table can have no more than 255 unique element list definitions among its ENUM and SET columns considered as a group* * Protocol: FIELD_TYPE_ENUM = 247*/ENUM("ENUM", Types.CHAR, String.class, 0, MysqlType.IS_NOT_DECIMAL, 65535L, "('value1','value2',...) [CHARACTER SET charset_name] [COLLATE collation_name]"),/*** SET('value1','value2',...) [CHARACTER SET charset_name] [COLLATE collation_name]* A set. A string object that can have zero or more values, each of which must be chosen from the list* of values 'value1', 'value2', ... SET values are represented internally as integers.* A SET column can have a maximum of 64 distinct members. A table can have no more than 255 unique* element list definitions among its ENUM and SET columns considered as a group* * Protocol: FIELD_TYPE_SET = 248*/SET("SET", Types.CHAR, String.class, 0, MysqlType.IS_NOT_DECIMAL, 64L, "('value1','value2',...) [CHARACTER SET charset_name] [COLLATE collation_name]"),/*** TINYBLOB* A BLOB column with a maximum length of 255 (28 ??? 1) bytes. Each TINYBLOB value is stored using a* 1-byte length prefix that indicates the number of bytes in the value.* * Protocol:FIELD_TYPE_TINY_BLOB = 249*/TINYBLOB("TINYBLOB", Types.VARBINARY, null, 0, MysqlType.IS_NOT_DECIMAL, 255L, ""),/*** TINYTEXT [CHARACTER SET charset_name] [COLLATE collation_name]* A TEXT column with a maximum length of 255 (28 ??? 1) characters. The effective maximum length* is less if the value contains multibyte characters. Each TINYTEXT value is stored using* a 1-byte length prefix that indicates the number of bytes in the value.* * Protocol:FIELD_TYPE_TINY_BLOB = 249*/TINYTEXT("TINYTEXT", Types.VARCHAR, String.class, 0, MysqlType.IS_NOT_DECIMAL, 255L, " [CHARACTER SET charset_name] [COLLATE collation_name]"),/*** MEDIUMBLOB* A BLOB column with a maximum length of 16,777,215 (224 ??? 1) bytes. Each MEDIUMBLOB value is stored* using a 3-byte length prefix that indicates the number of bytes in the value.* * Protocol: FIELD_TYPE_MEDIUM_BLOB = 250*/MEDIUMBLOB("MEDIUMBLOB", Types.LONGVARBINARY, null, 0, MysqlType.IS_NOT_DECIMAL, 16777215L, ""),/*** MEDIUMTEXT [CHARACTER SET charset_name] [COLLATE collation_name]* A TEXT column with a maximum length of 16,777,215 (224 ??? 1) characters. The effective maximum length* is less if the value contains multibyte characters. Each MEDIUMTEXT value is stored using a 3-byte* length prefix that indicates the number of bytes in the value.* * Protocol: FIELD_TYPE_MEDIUM_BLOB = 250*/MEDIUMTEXT("MEDIUMTEXT", Types.LONGVARCHAR, String.class, 0, MysqlType.IS_NOT_DECIMAL, 16777215L, " [CHARACTER SET charset_name] [COLLATE collation_name]"),/*** LONGBLOB* A BLOB column with a maximum length of 4,294,967,295 or 4GB (232 ??? 1) bytes. The effective maximum length* of LONGBLOB columns depends on the configured maximum packet size in the client/server protocol and available* memory. Each LONGBLOB value is stored using a 4-byte length prefix that indicates the number of bytes in the value.* * Protocol: FIELD_TYPE_LONG_BLOB = 251*/LONGBLOB("LONGBLOB", Types.LONGVARBINARY, null, 0, MysqlType.IS_NOT_DECIMAL, 4294967295L, ""),/*** LONGTEXT [CHARACTER SET charset_name] [COLLATE collation_name]* A TEXT column with a maximum length of 4,294,967,295 or 4GB (232 ??? 1) characters. The effective* maximum length is less if the value contains multibyte characters. The effective maximum length* of LONGTEXT columns also depends on the configured maximum packet size in the client/server protocol* and available memory. Each LONGTEXT value is stored using a 4-byte length prefix that indicates* the number of bytes in the value.* * Protocol: FIELD_TYPE_LONG_BLOB = 251*/LONGTEXT("LONGTEXT", Types.LONGVARCHAR, String.class, 0, MysqlType.IS_NOT_DECIMAL, 4294967295L, " [CHARACTER SET charset_name] [COLLATE collation_name]"),/*** BLOB[(M)]* A BLOB column with a maximum length of 65,535 (216 ??? 1) bytes. Each BLOB value is stored using* a 2-byte length prefix that indicates the number of bytes in the value.* An optional length M can be given for this type. If this is done, MySQL creates the column as* the smallest BLOB type large enough to hold values M bytes long.* * Protocol: FIELD_TYPE_BLOB = 252*/BLOB("BLOB", Types.LONGVARBINARY, null, 0, MysqlType.IS_NOT_DECIMAL, 65535L, "[(M)]"),/*** TEXT[(M)] [CHARACTER SET charset_name] [COLLATE collation_name]* A TEXT column with a maximum length of 65,535 (216 ??? 1) characters. The effective maximum length* is less if the value contains multibyte characters. Each TEXT value is stored using a 2-byte length* prefix that indicates the number of bytes in the value.* An optional length M can be given for this type. If this is done, MySQL creates the column as* the smallest TEXT type large enough to hold values M characters long.* * Protocol: FIELD_TYPE_BLOB = 252*/TEXT("TEXT", Types.LONGVARCHAR, String.class, 0, MysqlType.IS_NOT_DECIMAL, 65535L, "[(M)] [CHARACTER SET charset_name] [COLLATE collation_name]"),/*** [NATIONAL] CHAR[(M)] [CHARACTER SET charset_name] [COLLATE collation_name]* A fixed-length string that is always right-padded with spaces to the specified length when stored.* M represents the column length in characters. The range of M is 0 to 255. If M is omitted, the length is 1.* Note* Trailing spaces are removed when CHAR values are retrieved unless the PAD_CHAR_TO_FULL_LENGTH SQL mode is enabled.* CHAR is shorthand for CHARACTER. NATIONAL CHAR (or its equivalent short form, NCHAR) is the standard SQL way* to define that a CHAR column should use some predefined character set. MySQL 4.1 and up uses utf8* as this predefined character set.* * MySQL permits you to create a column of type CHAR(0). This is useful primarily when you have to be compliant* with old applications that depend on the existence of a column but that do not actually use its value.* CHAR(0) is also quite nice when you need a column that can take only two values: A column that is defined* as CHAR(0) NULL occupies only one bit and can take only the values NULL and '' (the empty string).* * Protocol: FIELD_TYPE_STRING = 254*/CHAR("CHAR", Types.CHAR, String.class, 0, MysqlType.IS_NOT_DECIMAL, 255L, "[(M)] [CHARACTER SET charset_name] [COLLATE collation_name]"),/*** BINARY(M)* The BINARY type is similar to the CHAR type, but stores binary byte strings rather than nonbinary character strings.* M represents the column length in bytes.* * The CHAR BYTE data type is an alias for the BINARY data type.* * Protocol: no concrete type on the wire TODO: really?*/BINARY("BINARY", Types.BINARY, null, 0, MysqlType.IS_NOT_DECIMAL, 255L, "(M)"),/*** Top class for Spatial Data Types* * Protocol: FIELD_TYPE_GEOMETRY = 255*/GEOMETRY("GEOMETRY", Types.BINARY, null, 0, MysqlType.IS_NOT_DECIMAL, 65535L, ""), // TODO check precision, it isn't well documented, only mentioned that WKB format is represented by BLOB /*** Fall-back type for those MySQL data types which c/J can't recognize.* Handled the same as BLOB.* * Has no protocol ID.*/UNKNOWN("UNKNOWN", Types.OTHER, null, 0, MysqlType.IS_NOT_DECIMAL, 65535L, "");/*** Get MysqlType matching the full MySQL type name, for example "DECIMAL(5,3) UNSIGNED ZEROFILL".* Distinct *_UNSIGNED type will be returned if "UNSIGNED" is present in fullMysqlTypeName.* * @param fullMysqlTypeName*            full MySQL type name* @return MysqlType*/

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/615738.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

(第48-59讲)STM32F4单片机,FreeRTOS【事件标志、任务通知、软件定时器、Tickless低功耗】【纯文字讲解】【原创】

文章目录 🔴🟡🟢其他文章链接,独家吐血整理1、纯文字(待补充) 🔴🟡🟢其他文章链接,独家吐血整理 【吐血总结】FreeRTOS难点、Systick中断-滴答定时器、PendS…

ES6语法详解+面试必备

ES6(ECMAScript 2015)是JavaScript的一个版本,它于2015年发布。ES6引入了很多新的语法和功能,使得JavaScript更加强大、灵活和易于使用。 一、块级作用域: ES6引入了let和const关键字,可以在块级作用域中…

IP定位技术:如何保护患者的隐私和医疗数据安全?

随着科技的飞速发展,互联网已经深入到我们生活的方方面面,医疗行业也不例外。然而,这也带来了网络安全问题。如何保护患者的隐私和医疗数据的安全,成为了医疗行业面临的重大挑战。IP定位技术的应用,为解决这一问题提供…

Unity中URP下抓屏的 开启 和 使用

文章目录 前言一、抓屏开启1、Unity下开启抓屏2、Shader中开启抓屏 二、抓屏使用1、设置为半透明渲染队列,关闭深度写入2、申明纹理和采样器3、在片元着色器使用请添加图片描述 三、测试代码 前言 我们在这篇文章中看一下,URP下怎么开启抓屏。 一、抓屏…

(代码模板)JAVA_返回类R

个人留存用,通用返回类R代码模板: import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data;import java.io.Serializable; import java.util.HashMap; import java.util.Map;/*** author &#…

《共建开源》系列:Airtest-Framework - UI自动化框架系统

Airtest- Framework 平台简介 Airtest- Framework 是 基于 unittest、Flask、Airtest 搭建的 开源的 UI 自动化框架系统 提供 HTTP API 接口,实现自动解析包名并自动执行 相应目录下的 Case。目前仅支持单台设备连接。多个任务会自动排队处理。 系统要求 Pytho…

【动态规划】【二分查找】C++算法 466 统计重复个数

作者推荐 【动态规划】458:可怜的小猪 涉及知识点 动态规划 二分查找 力扣:466 统计重复个数 定义 str [s, n] 表示 str 由 n 个字符串 s 连接构成。 例如,str [“abc”, 3] “abcabcabc” 。 如果可以从 s2 中删除某些字符使其变为 s1,则称字符串…

互信息法的原理详解

文章目录 互信息法(上)互信息是什么从信息增益角度理解互信息从变量分布一致角度理解互信息 卡方检验与离散变量的互信息法 互信息法(上) 尽管f_regression巧妙的构建了一个F统计量,并借此成功的借助假设检验来判断变…

跨境商城系统如何开发代购商城、国际物流、一件代发等功能?

跨境商城系统的开发涉及到多个方面,其中代购商城、国际物流和一件代发等功能是其中的重要组成部分。本文将详细介绍如何开发这些功能,以帮助跨境商城系统更好地满足市场需求。 一、代购商城的开发 代购商城是跨境商城系统中的重要功能之一,它…

互联网加竞赛 基于大数据的股票量化分析与股价预测系统

文章目录 0 前言1 课题背景2 实现效果3 设计原理QTChartsarma模型预测K-means聚类算法算法实现关键问题说明 4 部分核心代码5 最后 0 前言 🔥 优质竞赛项目系列,今天要分享的是 🚩 基于大数据的股票量化分析与股价预测系统 该项目较为新颖…

小程序基础学习(导航栏组件)

目标:把导航栏抽离成组件,

oracle 19c容器数据库data dump数据泵传输数据(2)---11g导19c

目录 1.在11gnon-cdb数据库中创建测试用户 2.在19cCDB容器数据库中新建pdb2 3.执行命令导出 4.执行命令导入 Exporting from a Non-CDB and Importing into a PDB 我們要記住一点:如果是全库导出导入的话,目标数据库没有的表空间我们要事先创建&#…

Java中输入和输出处理(四)序列化和反序列化

Java中输入和输出处理(四)序列化和反序列化的笔记 一、序列化 序列化是将对象的状态信息转换为可以存储或传输的形式的过程。在Java中,我们可以使用java.io.Serializable接口来实现对象的序列化。 示例: import java.io.*;clas…

提高iOS App开发效率的方法

引言 随着智能手机的普及,iOS App开发成为越来越受欢迎的技术领域之一。许多人选择开发iOS应用程序来满足市场需求,但是iOS App开发需要掌握一些关键技术和工具,以提高开发效率和质量。本文将介绍一些关键点,可以帮助你进行高效的…

Flying HTML生成PDF添加水印

HTML转PDF并添加水印 <!-- 用于生成PDF --> <dependency><groupId>org.xhtmlrenderer</groupId><artifactId>flying-saucer-pdf</artifactId><version>9.1.20</version> </dependency>import java.io.File; import jav…

os.path模块常用函数

os.path模块提供用于处理文件路径的函数&#xff0c;这些函数可以跨平台使用&#xff0c;因为他们会根据操作系统的不同选择适当的路径分隔符。 1.os.path.join(path, *paths) 作用&#xff1a;将多个路径组合成一个完整的路径 path os.path.join(/path/to example file.…

基础知识篇(一)Acticity生命周期

Activity 类是 Android 应用的关键组件&#xff0c;而 activity 的启动和组合方式是平台应用模型的基本组成部分。与使用 main() 方法启动应用的编程范式不同&#xff0c;Android 系统会通过调用与其生命周期特定阶段对应的特定回调方法&#xff0c;在 Activity 实例中启动代码…

ChatGpt使用技巧

通用类技巧 角色扮演 比如让ChatGpt扮演500强营销专家 告诉ChatGpt你的身份。初学者、或是有一定能力、知识的学习者等 限制ChatGpt回答长度 100~200字之间 让ChatGpt一步一步思考 他会预测下一个单词&#xff0c;根据prompt进行生成 明确你的要求和目的 说清楚问题&#x…

为什么杭州的独角兽公司的技术专家都是阿里巴巴出来的?

在浙江杭州有一个不成为的规定&#xff0c;独角兽公司招聘技术人才的时候&#xff0c;尤其是阿里巴巴出来的技术专家&#xff0c;面试官都是争先恐后的面试&#xff0c;总是想第一时间把这个人拿到手&#xff0c;当然前提是这个技术专家不是水货。 猎头推荐人才的时候&#xf…

网络安全(网络安全)—2024自学

1.网络安全是什么 网络安全可以基于攻击和防御视角来分类&#xff0c;我们经常听到的 “红队”、“渗透测试” 等就是研究攻击技术&#xff0c;而“蓝队”、“安全运营”、“安全运维”则研究防御技术。 2.网络安全市场 一、是市场需求量高&#xff1b; 二、则是发展相对成熟…