MySqlTalk.com  

Go Back   MySqlTalk.com > MySQL > Database Design
User Name
Password
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Search this Thread
Old 01-28-2005, 09:14 AM   #1
AJLaFrance
Junior Member
 
Join Date: Jan 2005
Posts: 2 AJLaFrance is on a distinguished road
Table with text and numeric primary keys

I'm recreating a database structure from an MSAccess database in MySQL that will be used for a web application written in JSP. I have a table that has multiple primary keys with some being text and some being integers. I can either create the text primary keys or the integer primary keys, but I'm having problems doing both. If I create the text primary keys, then try to alter the table to make the integer a primary key, I get the following error:

ERROR 1068 (42000): Multiple primary key defined

Anybody know how I can resolve the issue? Thanks!
AJLaFrance is offline   Fork this post Reply With Quote
Old 01-28-2005, 10:55 AM   #2
AJLaFrance
Junior Member
 
Join Date: Jan 2005
Posts: 2 AJLaFrance is on a distinguished road
Re: Table with text and numeric primary keys

Nevermind! I was trying to recreate the database manually, which is quite the involved process. I found a program that converted the MS Access database over to a MySQL database. Thanks anyhow!
AJLaFrance is offline   Fork this post Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
1.8 MySQL Standards Compliance Administrator Documentation 21 06-08-2004 03:18 AM



All times are GMT -4. The time now is 12:21 PM.



Powered by: vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Google
  Web http://www.mysqltalk.com
DISCLAIMERS:
1. We have no commercial interest in this site.
Banner Ads and Subscriptions will only be used to help pay for hosting and maintenance costs.
2. MySQLTalk.com is NOT affiliated with MySQL AB in any way.
3. MySQLTalk.com is NOT endorsed by MySQL AB in any way.
4. Please do not post any content that is harmful to MySQL or MySQL AB, meaning no misleading or obsolete information will be tolerated.
Well-founded constructive criticism meant to help the community is permitted.
5. This website is founded with the goal of improving the MySQL community.
We not only tolerate newbies, we encourage them.
Please do not ask newbies to "read the manual".