Unix Technical Forum

Auto incremenet primary key field starting at 1001 ... (1001, 1002,1003, ..)

This is a discussion on Auto incremenet primary key field starting at 1001 ... (1001, 1002,1003, ..) within the MySQL forums, part of the Database Server Software category; --> Hi, Is it possible when creating a table to have the auto incremenet field start at, for example, 1000 ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 10:32 AM
bissatch@yahoo.co.uk
 
Posts: n/a
Default 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 10:32 AM
Paul Lautman
 
Posts: n/a
Default 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!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 10:32 AM
Kees Nuyt
 
Posts: n/a
Default 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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-28-2008, 10:32 AM
bissatch@yahoo.co.uk
 
Posts: n/a
Default 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-28-2008, 10:32 AM
Paul Lautman
 
Posts: n/a
Default 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 help you're likely to get here!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:07 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com