用最简单的方法转换sql的日期。 table: A, fields:(DateField,...)select isnull(DataField,'') from Atest it... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select case year(htqd1) when 1900 then '' else convert(char(10),htqd1,120) end as htqd1 from lcda 我目前都是用这种方法解决的,不知道有没有更简单的方法。 update table set column=nullwhere column=cast('1900-01-01' as date) 直接用 null就可以,不必做转换:null即1900-01-01,1900-01-01即null, Select case when htqd1='' then '' else convert(char(10),htqd1,120) end as htqd1 from lcda to m_cen: 不会吧。我用select isnull(htqd1,'') as isnull from lcda为何所有的1900-01-01都出来了。我写的不对吗?数据库为sql server,htqd1为datetime型 表分区高手进 为什么表对表复制数据时会出错 select查询 5个表关联查询,为什么Count的结果不正确?? 用Reporting Services做复杂的报表怎么解决?? 修改的触发器! 读中文乱码. sql如何实现这样的效果?请指点 oracle8.1.7数据库如何导入Sql server2000?高手讲解一下,急! 启动SQL Enterprise managment 之后为什么会在server的icon上有红色的曲线? 使用RDS如何访问远程的MDB数据库? net_steven,vfp_data,clear_liu,ltltlt快来帮忙。
我目前都是用这种方法解决的,不知道有没有更简单的方法。
set column=null
where column=cast('1900-01-01' as date)
null即1900-01-01,1900-01-01即null,
不会吧。我用select isnull(htqd1,'') as isnull from lcda
为何所有的1900-01-01都出来了。我写的不对吗?
数据库为sql server,htqd1为datetime型