PostgreSQL 和 SQL Server 中"bit"数据类型的默认"length/values"是什么



问题:

1

。在PostgreSQL中,位数据类型的默认长度/值是什么?

2

。什么是默认的长度/值位数据类型在SQL Server?

3 。什么是默认列值(NULL/NOT NULL)在PostgreSQL?

4

。什么是默认列值(NULL/NOT NULL)在SQL Server?

整型数据类型,取值为1、0或NULL。(参考下面的msdn链接)

Bit表示1位,其值为0或1,在选择或插入条件下,1为True, 0为False。

长度为1,值为True(1)或False(0)。

For sqlserverhttp://msdn.microsoft.com/en-IN/library/ms177603.aspx

为postgresSql

postgres如何处理位数据类型?

http://www.postgresql.org/docs/current/static/datatype-binary.html

最新更新