Article View: es.comp.os.linux.programacion
Article #6471Re: Campo auton�merico en MySQL
From: Alvaro G. Vicario
Date: Fri, 27 Jun 2003 07:43
Date: Fri, 27 Jun 2003 07:43
11 lines
1639 bytes
1639 bytes
"JC" <makako@makakito.kom> escribi� en el mensaje news:bdeage$dmp$1@mercurio.cica.es... > Aunque puedes hacer una "trampita" (como dice mi sobrino). Si quieres empezar a contar > desde 1000, insertas 999 registros in�tiles, y haces un delete from tabla; Como el > auto_incremental no se borra con un delete, pues... eso, "trampita". No hace falta. Con modificar a mano uno de los registros y poner el campo a 999 (lo cual se puede hacer sin problema), el siguiente que se genere lo har� a partir de 1000.
Technical Details
Message-ID:
<bdgsie$sb6us$1@ID-157797.news.dfncis.de>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!10.red-80-37-15.pooles.rima-tde.NET!not-for-mailReferences:
<bccrep$kls$1@nsnmrro2-gest.nuria.telefonica-data.net> <bdeage$dmp$1@mercurio.cica.es>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,b785db79ce14e080 X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2003-06-27 00:43:12 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!10.red-80-37-15.pooles.rima-tde.NET!not-for-mail From: "Alvaro G. Vicario" <alvaro.QUITAR_REMOVE@telecomputeronline.net> Newsgroups: es.comp.os.linux.programacion Subject: Re: Campo auton�merico en MySQL Date: Fri, 27 Jun 2003 09:43:09 +0200 Lines: 15 Message-ID: <bdgsie$sb6us$1@ID-157797.news.dfncis.de> References: <bccrep$kls$1@nsnmrro2-gest.nuria.telefonica-data.net> <bdeage$dmp$1@mercurio.cica.es> NNTP-Posting-Host: 10.red-80-37-15.pooles.rima-tde.net (80.37.15.10) X-Trace: fu-berlin.de 1056699790 29727708 80.37.15.10 (16 [157797]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165