MYSQL_TYPE_TINY
	C Variable: signed char
	SQL Type: TINYINT (-128 to 127)

MYSQL_TYPE_SHORT
	C Variable: short int (int16_t)
	SQL Type: SMALLINT (-32768 to 32767)

MYSQL_TYPE_LONG
	C Variable: int (int32_t)
	SQL Type: INT (-2147483648 to 2147483647)

MYSQL_TYPE_LONGLONG
	C Variable: long long int (int64_t)
	SQL Type: BIGINT (-9223372036854775808 to 9223372036854775807)

MYSQL_TYPE_FLOAT
	C Variable: float
	SQL Type: FLOAT

MYSQL_TYPE_DOUBLE
	C Variable: double
	SQL Type: DOUBLE

MYSQL_TYPE_TIME
	C Variable: MYSQL_TIME
	SQL Type: TIME

MYSQL_TYPE_DATE
	C Variable: MYSQL_TIME
	SQL Type: DATE

MYSQL_TYPE_DATETIME
	C Variable: MYSQL_TIME
	SQL Type: DATETIME

MYSQL_TYPE_TIMESTAMP
	C Variable: MYSQL_TIME
	SQL Type: TIMESTAMP

MYSQL_TYPE_STRING
	C Variable: char[]
	SQL Type: TEXT, CHAR, VARCHAR

MYSQL_TYPE_BLOB
	C Variable: char[]
	SQL Type: BLOB, BINARY, VARBINARY

MYSQL_TYPE_NULL
	C Variable: 
	SQL Type: NULL

 

USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.

Comments

Your email address will not be published. Required fields are marked *