MySQL Forums
Forum List  »  Microsoft SQL Server

Re: How to migrate Fields type BIT from MS SQL to MySQL
Posted by: Dmitry Tolpeko
Date: January 31, 2005 07:31AM

Hi Claudio,

MySQL supports the BIT data type. Please have a look at http://dev.mysql.com/doc/mysql/en/numeric-type-overview.html

mysql> create table bit1 (col1 bit);
Query OK, 0 rows affected (0.20 sec)

mysql> insert into bit1 values (1);
Query OK, 1 row affected (0.05 sec)

mysql> insert into bit1 values (5);
Query OK, 1 row affected (0.03 sec)

mysql> insert into bit1 values (0);
Query OK, 1 row affected (0.05 sec)

mysql> select * from bit1;
+------+
| col1 |
+------+
| 1 |
| 5 |
| 0 |
+------+
3 rows in set (0.00 sec)


Best regards, Dmitry Tolpeko
SQLWays - Database migration tool for MySQL
http://www.ispirer.com

Options: ReplyQuote


Subject
Written By
Posted
Re: How to migrate Fields type BIT from MS SQL to MySQL
January 31, 2005 07:31AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.