gadfly and autonumber/auto_increment/guid?

Steve Holden sholden at holdenweb.com
Thu Dec 6 16:53:56 EST 2001


"Lutz Schroeer" <Lutz.Schroeer at kybernetik-manufaktur.de> wrote ...
> Hi,
>
> i've searched through the Net for hours now and couldn't find any hint:
>
> How do I create an autonumber/auto_increment/guid or the like in a table
> using the gadfly DB?
>
> Please help, I really don't want to switch to M$ Access and VB :-))
>
Gadfly doesn't support such refinements. You could, however, use the GUID
creation routine in the Win32 extensions if you have them loaded. You need
to do:

>>> import pythoncom
>>> s = str(pythoncom.CreateGuid())
>>> print s
{B4CD0B60-EA69-11D5-8364-0060978B74F3}
>>>

Hope this helps.

regards
 Steve
--
http://www.holdenweb.com/








More information about the Python-list mailing list