2013-10-21 110 views

回答

1

我只有40%知道你是問這裏是什麼;我假設,確切的字符串AND [email protected]必須出現在查詢中,因爲您正在構建從網頁生成的動態查詢等。

Where 1=1 
    and [email protected] 
    and (1=2 
     Or P.ProductId=1 
     Or C.CustomerSituation=1 
    )