摘要: 从Varchar转换为 datetime时,要注意字符串是否符合日期格式,如果是的话肯定没有问题。要不可能出现错误:字符串到datetime出错。datetime->varchar:convert(varchar(20),@Date_M,120) varchar->datetime:cast(@Date_M as datetime)如果两个时间比较,例如:A为:2009-10-31 2... 阅读全文
posted @ 2009-11-24 16:47 桔子湖 阅读(2869) 评论(0) 推荐(0) 编辑