陋室铭
永远也不要停下学习的脚步(大道至简至易)

posts - 2167,comments - 570,views - 413万
11 2014 档案
SQL修改日期时间型数据中的年月日
摘要:以下语句为更改 tevent表中的eventtime字段为2011-7-16当eventtime为2012-02-29时update tevent set eventtime='2011-7-16'+right(convert(varchar(23),eventtime,121),13) where... 阅读全文
posted @ 2014-11-20 12:11 宏宇 阅读(21946) 评论(0) 推荐(0) 编辑
SQL中得到最后一个“-”后面的字符串
摘要:declare @str varchar(50)set @str='-'+'1-9-3-2'--前面加个'-'防止没有'-'出错select REVERSE(SUBSTRING(REVERSE(@str),1,CHARINDEX('-',REVERSE(@str))-1)) 阅读全文
posted @ 2014-11-14 16:14 宏宇 阅读(2140) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示