|
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
- Web Developer - Working with Adobe Business Catalyst
- .NET developers for a Global digital Agency
- Flash Action Script 3.0 Developer - contract
- Looking for developers for a challenging social network project
- Coder Australia freelance web developer and programer
- Need low price based website
- Professional Website@50usd
- Get a website in USD 50/-
- Custom Joomla Development|Custom Joomla Developer|Joomla Developer
- We need you...php programmers!
- Website Designer
- Search Engine Optimization
- JavaScript - Need help as soon as possible
- Professional Zencart Developer Wanted - Melbourne Eastern Suburbs
- Feedback wanted for new single sign on service


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