易截截图软件、单文件、免安装、纯绿色、仅160KB

求SQL语句的写法

想下面的代码(VB.NET),在SQL中应该怎么写呀

VB.NET code:

If Str_delx = "a" Then

ElseIf Str_delx = "b" Then

ElseIf Str_delx = "c" Then

Else

End If


SQL code:
CASE Str_delx WHEN 'A' THEN .. WHEN 'B' THEN .. WHEN 'C' THEN .. ELSE ..END


SQL code:
case
when Str_delx = 'a' Then xxx1
when Str_delx = 'b' Then xxx2
when Str_delx = 'c' Then xxx3
Else xxx4
End


case when Str_delx = "a" then ...
when Str_delx = "b" then ...
when Str_delx = "c" then ...
end

SQL code:
case when


SQL code:
If @Str_delx = 'a'
begin
end
Else If @Str_delx = 'b' Then
begin
end
Else I


相关问答:

csv文件转换成sql导入到数据库,没有数据为何?

执行的顺序:
1)文件浏览框(选择文件使用)
选择好文件后
点击一个导入按钮的时候 ,把上面上传框里的csv文件以一个ID为文件名,上传到**/**文件夹下
2)读取这个文件夹下的csv的文件,转换成sql
3 ......

求一sql语句 - MS-SQL Server / 疑难问题

现在有两张表:文章主表A(articleId,articleTitle),文章评论表B(commentId,articleId,commentTitle)
现在我想实现这样的功能:列出文章列表,其中每篇文章标题下面列出此文章的前2个文章评论,请问sql语句怎么写啊 ......

SQL clr - MS-SQL Server / 非技术版

想用SQL CLR做如下的存储过程,但是发现报错: 
{由于代码已经过优化或者本机框架位于调用堆栈之上,无法计算表达式的值。} 
而且如果数据从case 1通过时就是正确的,从case 2通过时错误 
并且在c ......

求一sql语句 - MS-SQL Server / 基础类


id bh  
1 10
2 11
3 12 
4 15
5 16
6 22
7 25
8 26
9 27
10 28
将bh按连续分段出来返回字符串:
10~12,15~16,22,25~28
SQL code:


declare @t tabl ......

关于SQL Server Mobile Edition - .NET技术 / ASP.NET

关于SQL Server Mobile Edition
用Microsoft SQL Server2005 Management Studio Express9.00.3042.00创建SQLCE数据库sqlmobile.sdf
在mobile系统终端上用SQL Server Mobile Edition3.0能查看sqlmobile.sdf里表数据 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号