CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2010
    Location
    Bangalore
    Posts
    5

    how to avoid duplication while retrieve data from database?

    In C language I wrote a program for retrieving data from database(MySql) using 30 threads.
    but same record is retrieved for every thread.how to avoid this?At a time I retrieved only one record.Using for loop I have to retrieved all the data from database.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: how to avoid duplication while retrieve data from database?

    Well, why to not retrieve it in a single thread?
    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured