If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Unique Key Definition

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-18-03, 22:22
nhhockeyplayer nhhockeyplayer is offline
Registered User
 
Join Date: Nov 2003
Posts: 2
Unique Key Definition

Hi,

I am trying to get a key of a document_name and a docnumber which is auto_increment.

MySQL won't work

"1,name1"
"2,name1"
"3,name1"
...

How do I get a key that will create a unique document_name with a newly incremented docnumber ???

Tanks
Reply With Quote
  #2 (permalink)  
Old 11-21-03, 04:40
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
Do you need to create a key (an index) or do you want to create a field ?
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On