我在写热门搜索`
思路是用一张SQL表 存用户能搜到结果大于1的搜索字 
但遇到一问题就是如果数据库中已经有了该关键字那不就重复了?
我的代码这样写的`:        int newcount = 1;
        try
        {
            SqlCommand upcount = new SqlCommand("update aspnet_HotSearch set Count = Count+1 Where KeyWord='" + key + "'",mysqlSqlConnection);
            upcount.ExecuteNonQuery();
        }
        catch
        {
            SqlCommand intoKey = new SqlCommand("insert into aspnet_Hot(Key,Count) value('" + key + "','" + newcount + "')", mysqlSqlConnection);
            intoKey.ExecuteNonQuery();
        }但无用 所以请教下`该如何写`
顺便看看热门搜索`有没有更好的思路?