ллÈ˹¤ÖÇÄܵÄ֪ʶ¿â²éѯÎÊÌâ ÊDz»ÊÇר¼Òϵͳ°¡ select * from a left join b on a.info1 = b.info1 select ±íA.UserID as ID1,±íA.Info1,±íA.Info2,±íB.Info1,±íB.Info2¡¡ from ±íA left join ±íB on ±íA.Info1=±íB.Info1 ¿´×ÅÔÎ,¶¥Ò»ÏÂ
@uid int @money float If not exists(SELECT null from bc_users_table where bet_id=@uid and bet_hk_rationing.exist('/root/items[@straight_bet>'+@money+']') = 1) --BEGIN ......
select case null when '' then '1' when null then '2' --ΪʲôûÓÐÔÚÕâ¸öλÖÃÅжϳöÀ´ else '3' end a select 1 a,2 b into #a select isnull(b,0) b from #a where a=2 --bÁÐû ......