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 > changing type of primary key

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-18-04, 15:20
Programmer Programmer is offline
Registered User
 
Join Date: Nov 2002
Posts: 50
changing type of primary key

Hi guys

gota a quick question

ok.. lets say.. i have mysql database.. and in that database.. i gota table .. in that table i got a primary key seq_id which is int.. and then i got another table.. and it also has the same key seq_id which is int as well.. and i got data in that table.. now lets say if i wanna change the type from int to char.. will it affect .. my data?

thanks in advance
__________________
Deep
Reply With Quote
  #2 (permalink)  
Old 09-22-04, 17:32
cristiu cristiu is offline
Registered User
 
Join Date: Sep 2004
Posts: 46
Yes you may, no data affected but you must convert from int to varchar...
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