單項選擇題

動態(tài)SQL中,判斷username不是空且不是空串的寫法,正確的是()。

A.<if "username!=null and username!=’’">
B.<if test="username!=null or username!=’’">
C.<if test="username!=null and username!=’’">
D.<trim test="username!=null and username!=’’">

微信掃碼免費搜題