会员
众包
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
zhengyunjia
博客园
首页
新随笔
联系
订阅
管理
2009年11月24日
从Varchar转换为 datetime
摘要: 从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)
编辑
公告