|
Web Contractors Web Developer Jobs Join Us / Log in Discussion |
MYSQL Primary Key in TABLE
Submitted by rimian on Sat, 12/02/2006 - 09:19
ok...
I am creating a table with one INT field and one row.
Does it have to be a primary key?
New forum topics
- [MELB] Web Developer | Web Designer | Graphic Designer | Marketing Manager
- Open Source Online Invoicing Software
- Professional Drupal Consulting, Design & Development Services in Australia
- New Year Speacial-Professional Website for 400$ with doamin+Host
- Ruby on Rails Oceana
- WebDev/Design/Research/Consultant - PHP/MySql, Javascript, Joomla, HTML, Flash, AJAX
- Freelance ASP.NET Developer
- System Monitoring with Nagios
- Learning Ruby? What about the RubyMentor Project?
- Need a team
- JAOO Sydney/Brisbane 2009
- Get Your Business a Website for $399 ONLY !!!
- Concrete5: Another CMS!
- Manage The Cloud with Amazon Web Services
- Crystal Reports developer needed


Okay first off, does this really need to be a table all by itself?
If its only one field/one record then no it doesn't need to be a Primary key
i want to make myself a
ye olde stylecounter. just as an exercise into this CMS.i need to work out how to insert one row into table if a row does not exist. something like
INSERT INTO x WHERE field NOT IN (SELECT * FROM x)
or maybe
INSERT INTO x WHERE NOT EXISTS ...
or INSERT INGORE
i will find it...
maybe the config table can have another record..
Post new comment