Çó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
Ïà¹ØÎÊ´ð£º
Ö´ÐеÄ˳Ðò£º
1£©Îļþä¯ÀÀ¿ò£¨Ñ¡ÔñÎļþʹÓã©
Ñ¡ÔñºÃÎļþºó
µã»÷Ò»¸öµ¼Èë°´Å¥µÄʱºò £¬°ÑÉÏÃæÉÏ´«¿òÀïµÄcsvÎļþÒÔÒ»¸öIDΪÎļþÃû£¬ÉÏ´«µ½**/**Îļþ¼ÐÏÂ
2£©¶ÁÈ¡Õâ¸öÎļþ¼ÐϵÄcsvµÄÎļþ£¬×ª»»³Ésql
3 ......
select count(1) from FX_RETURNBOOKCHECKLIST fxreturnbo0_ where fxreturnbo0_.BOOKID='164 ' AND fxreturnbo0_.RETURNID='00025.S0000001'
ÉÏÃæÒ»¸ö¼òµ¥µÄSQL,Ö´ÐÐʱ¼ä2.6à ......
¹ØÓÚSQL Server Mobile Edition
ÓÃMicrosoft SQL Server2005 Management Studio Express9.00.3042.00´´½¨SQLCEÊý¾Ý¿âsqlmobile.sdf
ÔÚmobileϵͳÖÕ¶ËÉÏÓÃSQL Server Mobile Edition3.0Äܲ鿴sqlmobile.sdfÀï±íÊý¾Ý ......