摘要:
declare @t table (C_ID int,PcName varchar(6),ParentID int)insert into @tselect 1,'安徽',0 union allselect 2,'安庆',1 union allselect 3,'安庆市',2 union allse... 阅读全文
posted @ 2014-09-04 15:20
656142691
阅读(632)
评论(0)
推荐(0)
摘要:
近期项目用到了很多日期转换为字符串、字符串转换为日期的方法,而且也用到了很多日期格式,特整理如下,以备后用。1、日期转换为字符串、日期格式使用函数CONVERT:CONVERT(data_type[(length)],expression[,style])参数expression是任何有效的Micr... 阅读全文
posted @ 2014-09-04 15:02
656142691
阅读(12923)
评论(0)
推荐(1)
摘要:
有的时候,我们有需要将由不同栏位获得的资料串连在一起。每一种资料库都有提供方法来达到这个目的:MySQL: CONCAT()Oracle: CONCAT(), ||SQL Server: +CONCAT() 的语法如下:CONCAT(字串1, 字串2, 字串3, ...): 将字串1、字串2、字串3... 阅读全文
posted @ 2014-09-04 15:00
656142691
阅读(664)
评论(0)
推荐(0)

浙公网安备 33010602011771号