这个行不

        account  =  FilterStringToSql(account).ToLower();
        
string  commStr  =   " select * from playerid where lower(account)=@account " ;
        
using  (SqlConnection Conn  =   new  SqlConnection(AccountConnStr))
ExpandedBlockStart.gifContractedBlock.gif        
{
            Conn.Open();
            SqlCommand comm 
= new SqlCommand(commStr, Conn);
            comm.Parameters.AddWithValue(
"@account", account);
            SqlDataAdapter da 
= new SqlDataAdapter(comm);
            DataTable dt 
= new DataTable();
            da.Fill(dt);
            
return dt.Rows.Count > 0 ? true : false;
        }

转载于:https://www.cnblogs.com/lishenglyx/archive/2008/11/21/1338604.html

你可能感兴趣的:(这个行不)