{"id":368,"date":"2016-03-31T20:27:25","date_gmt":"2016-03-31T11:27:25","guid":{"rendered":"http:\/\/www.onepage.co.kr\/wordpress\/?p=368"},"modified":"2016-03-31T20:28:08","modified_gmt":"2016-03-31T11:28:08","slug":"microsoft-sql-server-type-mapping","status":"publish","type":"post","link":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/2016\/03\/31\/microsoft-sql-server-type-mapping\/","title":{"rendered":"Microsoft SQL Server Type Mapping"},"content":{"rendered":"<div class=\"titlepage\">\n<div>\n<div>\n<h3 class=\"title\">10.5.4\u00a0Microsoft SQL Server Type Mapping<\/h3>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"table\">\n<p><a name=\"wb-migration-database-mssql-typemapping-table\"><\/a><\/p>\n<p class=\"title\"><b>Table\u00a010.2\u00a0Type mapping<\/b><\/p>\n<div class=\"table-contents\">\n<table class=\"table\" style=\"height: 3960px;\" border=\"1\" summary=\"Type mapping\" width=\"802\">\n<colgroup>\n<col \/>\n<col \/>\n<col \/><\/colgroup>\n<thead>\n<tr>\n<th scope=\"col\">Source Type<\/th>\n<th scope=\"col\"><a class=\"ulink\" href=\"http:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/data-types.html\" target=\"_top\">MySQL Type<\/a><\/th>\n<th scope=\"col\">Comment<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td scope=\"row\">INT<\/td>\n<td>INT<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">TINYINT<\/td>\n<td>TINYINT<\/td>\n<td>UNSIGNED flag set in MySQL<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">SMALLINT<\/td>\n<td>SMALLINT<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">BIGINT<\/td>\n<td>BIGINT<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">BIT<\/td>\n<td>TINYINT(1)<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">FLOAT<\/td>\n<td>FLOAT<\/td>\n<td>Precision value is used for storage size in both<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">REAL<\/td>\n<td>FLOAT<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">NUMERIC<\/td>\n<td>DECIMAL<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">DECIMAL<\/td>\n<td>DECIMAL<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">MONEY<\/td>\n<td>DECIMAL<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">SMALLMONEY<\/td>\n<td>DECIMAL<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">CHAR<\/td>\n<td>CHAR\/LONGTEXT<\/td>\n<td>Depending on its length. MySQL Server 5.5 and above can have CHAR columns with a length up to 255 characters. Anything larger is migrated as LONGTEXT<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">NCHAR<\/td>\n<td>CHAR\/LONGTEXT<\/td>\n<td>Depending on its length. MySQL Server 5.5 and above can have VARCHAR columns with a length up to 65535 characters. Anything larger is migrated to one of the TEXT blob types. In MySQL, character set of strings depend on the column character set instead of the datatype.<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">VARCHAR<\/td>\n<td>VARCHAR\/MEDIUMTEXT\/LONGTEXT<\/td>\n<td>Depending on its length. MySQL Server 5.5 and above can have VARCHAR columns with a length up to 65535 characters. Anything larger is migrated to one of the TEXT blob types.<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">NVARCHAR<\/td>\n<td>VARCHAR\/MEDIUMTEXT\/LONGTEXT<\/td>\n<td>Depending on its length. MySQL Server 5.5 and above can have VARCHAR columns with a length up to 65535 characters. Anything larger is migrated to one of the TEXT blob types. In MySQL, character set of strings depend on the column character set instead of the datatype.<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">DATE<\/td>\n<td>DATE<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">DATETIME<\/td>\n<td>DATETIME<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">DATETIME2<\/td>\n<td>DATETIME<\/td>\n<td>Date range in MySQL is &#8216;1000-01-01 00:00:00.000000&#8217; to &#8216;9999-12-31 23:59:59.999999&#8217;. Note: fractional second values are only stored as of MySQL Server 5.6.4<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">SMALLDATETIME<\/td>\n<td>DATETIME<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">DATETIMEOFFSET<\/td>\n<td>DATETIME<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">TIME<\/td>\n<td>TIME<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">TIMESTAMP<\/td>\n<td>TIMESTAMP<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">ROWVERSION<\/td>\n<td>TIMESTAMP<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">BINARY<\/td>\n<td>BINARY\/MEDIUMBLOB\/LONGBLOB<\/td>\n<td>Depending on its length<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">VARBINARY<\/td>\n<td>VARBINARY\/MEDIUMBLOB\/LONGBLOB<\/td>\n<td>Depending on its length<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">TEXT<\/td>\n<td>VARCHAR\/MEDIUMTEXT\/LONGTEXT<\/td>\n<td>Depending on its length<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">NTEXT<\/td>\n<td>VARCHAR\/MEDIUMTEXT\/LONGTEXT<\/td>\n<td>Depending on its length<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">IMAGE<\/td>\n<td>TINYBLOB\/MEDIUMBLOB\/LONGBLOB<\/td>\n<td>Depending on its length<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">SQL_VARIANT<\/td>\n<td>not migrated<\/td>\n<td>There is not specific support for this datatype.<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">TABLE<\/td>\n<td>not migrated<\/td>\n<td>There is not specific support for this datatype.<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">HIERARCHYID<\/td>\n<td>not migrated<\/td>\n<td>There is not specific support for this datatype.<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">UNIQUEIDENTIFIER<\/td>\n<td>VARCHAR(64)<\/td>\n<td>A unique flag set in MySQL. There is not specific support for inserting unique identifier values.<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">SYSNAME<\/td>\n<td>VARCHAR(160)<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">XML<\/td>\n<td>TEXT<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"table-contents\">\n<table class=\"table\" cellspacing=\"0\" cellpadding=\"0\">\n<thead>\n<tr>\n<th scope=\"col\">Source Type<\/th>\n<th scope=\"col\"><a class=\"ulink\" href=\"http:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/data-types.html\" target=\"_top\">MySQL Type<\/a><\/th>\n<th scope=\"col\">Comment<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>10.5.4\u00a0Microsoft SQL Server Type Mapping Table\u00a010.2\u00a0Type mapping Source Type MySQL Type Comment INT INT TINYINT TINYINT UNSIGNED flag set in MySQL SMALLINT SMALLINT BIGINT BIGINT BIT TINYINT(1) FLOAT FLOAT Precision value is used for storage size in both REAL FLOAT NUMERIC DECIMAL DECIMAL DECIMAL MONEY DECIMAL SMALLMONEY DECIMAL CHAR CHAR\/LONGTEXT Depending on its length. MySQL [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5],"tags":[],"class_list":["post-368","post","type-post","status-publish","format-standard","hentry","category-mariadb-mysql","category-mssql"],"_links":{"self":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=368"}],"version-history":[{"count":2,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/368\/revisions"}],"predecessor-version":[{"id":370,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/368\/revisions\/370"}],"wp:attachment":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}