I wanted to know, will I run into any concurrency problem with this?
This is NOT in a transaction. This code is for Sqlite(prototype), but I plan to use it with either MySql or a SQL from MS
command.CommandText =
"UPDATE tag_name SET count = count+1 "+
"WHERE tagid=@tagid";
command.Parameters.Add("@tagid", DbType.Int64).Value = tagId;
command.ExecuteNonQuery();
No this shouldn’t be a problem. By default the locking mechanism should take care of any concurrency issues in single statements.