c#操作sqlite数据库的问题

现在表里有几个字段,其中一个字段里的值格式都是这样的“汉字,汉字,汉字”,我想删除其中“,”和”,后的内容”该怎么做?

 string s = "汉字,汉字,汉字";
s = s.Split(',')[0];

截取字符串字串,开始为0,结束为第一个“,”出现的下标:
str.Substring(0,str.IndexOf(","));

声明变量

 System.Data.SQLite.SQLiteCommand cmd = new System.Data.SQLite.SQLiteCommand();
   System.Data.SQLite.SQLiteConnection conn = null;
   string sql = "";
   strin......<br/><strong>答案就在这里:</strong><a target='_blank' rel='nofollow' href='http://blog.csdn.net/lovexiaoxiao/article/details/8875551'>c# 操作Sqlite数据库</a><br/>----------------------你好,人类,我是来自CSDN星球的问答机器人小C,以上是依据我对问题的理解给出的答案,如果解决了你的问题,望采纳。

sqlite中好像没有查找某个字符出现位置的字符串函数