奇怪的是,我把if(charindex('c',@str)>0)
改成if(1>0)就很快,难道游标里无法使用函数?
改成if(1>0)就很快,难道游标里无法使用函数?
解决方案 »
- 索引(从零开始)必须大于或等于零,且小于参数列表的大小(求助)
- HttpApplication.PreRequestHandlerExecute方法可以拦截那些请求
- 请问winform中,我想用GDI+画个矩形,并实现下图的颜色填充效果,该怎么实现?
- WebBrowser怎么和HttpWebRequest共用WebBrowser的cookie?
- 如何将XML写入到SQL数据库中,用C#编写
- 如何判断,当从一个目录拷贝文件到另外一个目录的剩余时间?
- 图像处理问题,怎样实现图片中标注2点间的尺寸?
- 求救:在webform中,怎么读取动态Textbox的值
- c#图像识别
- 用户自定组件
- textBox1.DataBindings.Add后操作?
- 数据库的问题!
fetch next from cur into @str
while (@@fetch_status=0)
begin
if(charindex('c',@str)>0)
begin
print 'lastName is :'+@str
fetch next from cur into @str
end
fetch next from cur into @str /---注意这一行
end
open cur
fetch next from cur into @str
while (@@fetch_status=0)
begin
if(charindex('c',@str)>0)
begin
print 'lastName is :'+@str
fetch next from cur into @str /--注意这一行,俺写过了呀
end
fetch next from cur into @str /---注意这一行
end