PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.databases.mysql > Auto incremenet primary key field starting at 1001 ... (1001, 1002,1003, ..)
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Auto incremenet primary key field starting at 1001 ... (1001, 1002,1003, ..)

Réponse
 
LinkBack Outils de la discussion
Vieux 30/01/2008, 16h27   #1
bissatch@yahoo.co.uk
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Auto incremenet primary key field starting at 1001 ... (1001, 1002,1003, ..)

Hi,

Is it possible when creating a table to have the auto incremenet field
start at, for example, 1000 instead of 1. I would like to have a table
called orders and want to use this number as an invoice code. Cheers

Burnsy
  Réponse avec citation
Vieux 30/01/2008, 18h27   #2
Paul Lautman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Auto incremenet primary key field starting at 1001 ... (1001, 1002, 1003, ..)

bissatch@yahoo.co.uk wrote:
> Hi,
>
> Is it possible when creating a table to have the auto incremenet field
> start at, for example, 1000 instead of 1. I would like to have a table
> called orders and want to use this number as an invoice code. Cheers
>
> Burnsy


Try this little trick.
Take (most of) the subject of your post:

Auto incremenet primary key field starting at

Type them into the search box at www.google.com
Then click the "I'm Feeling Lucky" button
Then read the article.

Even though you spelling of "increment" is hopelessly incorrect, it still
takes you straight to the correct page of the manual!


  Réponse avec citation
Vieux 30/01/2008, 18h45   #3
Kees Nuyt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Auto incremenet primary key field starting at 1001 ... (1001, 1002, 1003, ..)

On Wed, 30 Jan 2008 08:27:19 -0800 (PST),
bissatch@yahoo.co.uk wrote:

>Hi,
>
>Is it possible when creating a table to have the auto incremenet field
>start at, for example, 1000 instead of 1. I would like to have a table
>called orders and want to use this number as an invoice code. Cheers
>
>Burnsy


http://dev.mysql.com/doc/refman/5.0/...ate-table.html
in the paragraph "table_option:"
--
( Kees
)
c[_] As scarce as truth is, the supply has
always been in excess of demand. (#351)
  Réponse avec citation
Vieux 30/01/2008, 19h03   #4
bissatch@yahoo.co.uk
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Auto incremenet primary key field starting at 1001 ... (1001,1002, 1003, ..)

On 30 Jan, 18:27, "Paul Lautman" <paul.laut...@btinternet.com> wrote:
> bissa...@yahoo.co.uk wrote:
> > Hi,

>
> > Is it possible when creating a table to have the auto incremenet field
> > start at, for example, 1000 instead of 1. I would like to have a table
> > called orders and want to use this number as an invoice code. Cheers

>
> > Burnsy

>
> Try this little trick.
> Take (most of) the subject of your post:
>
> Auto incremenet primary key field starting at
>
> Type them into the search box atwww.google.com
> Then click the "I'm Feeling Lucky" button
> Then read the article.
>
> Even though you spelling of "increment" is hopelessly incorrect, it still
> takes you straight to the correct page of the manual!


How witty of you, arent u the funny one today .. i accidentitialy
ineserted an extara character into increment so its 'hopelessly'
incorrect, what hope do i have in life :P
  Réponse avec citation
Vieux 30/01/2008, 19h12   #5
Paul Lautman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Auto incremenet primary key field starting at 1001 ... (1001, 1002, 1003, ..)

bissatch@yahoo.co.uk wrote:
> On 30 Jan, 18:27, "Paul Lautman" <paul.laut...@btinternet.com> wrote:
>> bissa...@yahoo.co.uk wrote:
>> > Hi,

>>
>> > Is it possible when creating a table to have the auto incremenet
>> > field start at, for example, 1000 instead of 1. I would like to
>> > have a table called orders and want to use this number as an
>> > invoice code. Cheers

>>
>> > Burnsy

>>
>> Try this little trick.
>> Take (most of) the subject of your post:
>>
>> Auto incremenet primary key field starting at
>>
>> Type them into the search box atwww.google.com
>> Then click the "I'm Feeling Lucky" button
>> Then read the article.
>>
>> Even though you spelling of "increment" is hopelessly incorrect, it
>> still takes you straight to the correct page of the manual!

>
> How witty of you, arent u the funny one today .. i accidentitialy
> ineserted an extara character into increment so its 'hopelessly'
> incorrect, what hope do i have in life :P


You missed the point entirely. I wasn't criticising your spelling. I was
pointing out that even with the mis-spelled word, simply putting the subject
line INCLUDING THE MIS-SPELLED WORD into google, still went straight to the
correct page of the manual, by pressing the I'm Feeling Lucky button.

So before sticking your fucking tongue out at me, try examining why you are
so lazy that you couldn't be bothered to try to find the answer to your own
question first. Then consider how much more you're likely to get here!


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h42.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09984 seconds with 13 queries