摘要: select SUBSTRING('123,abcdefg',charindex(',','123,abcdefg',0)+1,LEN('123,abcdefg')-charindex(',','123,abcdefg',0)) select SUBSTRING('123,abcdefg',0,ch 阅读全文
posted @ 2016-08-01 17:41 Mr.Jiang.K 阅读(155) 评论(0) 推荐(0)
摘要: SQL 语句日期用法及函数 --DAY()、MONTH()、YEAR()——返回指定日期的天数、月数、年数; select day(cl_s_time) as '日' from class --返回天 select '月'=month(cl_s_time) from class --返回月 sele 阅读全文
posted @ 2016-08-01 17:35 Mr.Jiang.K 阅读(858) 评论(0) 推荐(0)