如何在mysql的存储过程中一次接收要插入的UsierID列表?

时间:2015-04-23 09:43:39

标签: mysql

for (int n = 0; n < scoreDocs.Length; ++n)
{
    doc = new Document();
    ScoreDoc sd = scoreDocs[n];
    float score = sd.Score;
    int docId = sd.Doc;
    doc = searcher.Doc(docId);
    string userId = doc.GetField("userID").StringValue;
    UserID id = new UserID();
    id.user_ID = Convert.ToInt32(userId);
    QueryUsers.Add(id);
}

我想将此Id列表发送到Mysql DB,那么如何在我的sql存储过程中收到?请写存储过程谢谢

1 个答案:

答案 0 :(得分:0)