首页 > 其他 > 详细

chcharindex()函数是什么意思??

时间:2019-10-05 15:51:55      阅读:84      评论:0      收藏:0      [点我收藏+]
chcharindex()函数是什么意思??
charindex(exp1,exp2) 返回第一个字符串位于第二个字符串的起始位
例如:
select charindex("wonderful", notes)
from titles
where title_id = "TC3218"
-----------
46
返回表达式wonderful在titles表中notes列上的起始位置。

select cardflag,state, avg(datediff (s, createtime,finaltime )),min( datediff(s ,createtime, finaltime)),max (datediff( s,createtime ,finaltime))
 from do_card with(nolock )
 where from_channel_child =‘141160‘  and isfinal= 1
 and createtime between ‘20141118‘ and ‘20141119‘
 and cardflag in(‘chinaszx‘, ‘chinaunicom‘,‘chinatelecom‘ )
 and datediff(s ,createtime, finaltime)<‘3600‘
 and docount =1
 and callerid <>0
 group by cardflag, state order by cardflag ,state
  
 

chcharindex()函数是什么意思??

原文:https://www.cnblogs.com/ComputerVip/p/11624725.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!