sql advanced functions

1.row_number() OVER(order by userno)
2.select * from sa_baojiatype  with (nolock) where   typeno collate Chinese_PRC_CS_AS_WS=@astr--dl_yhd_getxsprice
3.b5.sprc=REPLACE(REPLACE(REPLACE(REPLACE(b5.sprc,CHAR(10),''),' ',''),' ',''),CHAR(13),''),  ----------排除空格和回车
4.B.x.value('.','varchar(500)') AS custno into #qq--派生
5.doc2=CONVERT(xml,'<v>'+REP

Guess you like

Origin blog.csdn.net/tianyustat/article/details/88409790