在《根据某一个值,查询到对应的表和字段(V2.0)》 中,在处理bit,datetime,smalldatetime数据类型字段上,存在Bug。

 

我们在V2.0上举例子

测试环境代码

 

Use Test
Go

If object_id('TableBitNDateTime'Is Not Null
    
Drop Table TableBitNDateTime
Go
Create Table TableBitNDateTime
(
    ID 
int Identity(1,1),
    BitX 
bit,
    Date 
datetime,
    
Constraint PK_TableBitNDateTime Primary Key(ID Asc)
)    
Go
Insert Into TableBitNDateTime(BitX,Date)
    
Select 0,'20090101 06:20:46' Union All
    
Select 0,'20090101 16:12:11' Union All
    
Select 1,'20090101 18:45:23' Union All    
    
Select 0,'20090101 21:51:29' 
Go

相关文章: