|
From: Per W. <pw...@ia...> - 2004-08-31 15:15:37
|
You could use a UUID - it is guaranteed to be unique even if multiple computers connect and insert at the same time. However, a lot of databases can generate your ID (or at least a sequential numeric value) themselves. /Per W On Tue, 31 Aug 2004, kractor wrote: > greetings, i'm pretty much completely new to C++ programming so i'll > apologize in advance if this is a silly question ... > > working on a small app for myself, and a portion of that app requires > the generation of an "id" string that will be used in a database lookup > table. i've been trying to think of how this might best be handled, and > the idea that seems to make the most sense so far is to have the program > generate a "random" string of alpha-numeric characters. > > was wondering if anyone might be able to point me towards any > documentation that might help me with this, or had any better ideas / > advice they could give ... would be greatly appreciated. > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |