access判斷字段是否存在寫法

字號:


    判斷表的字段是否存在:
    and exists (select top 1 [username] from [admin])
    用exists來判斷,里面選擇了第一個字段,從admin數(shù)據(jù)庫里