Database Listing...

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
maxfavela
Forum Newbie
Posts: 4
Joined: Tue Mar 28, 2006 11:25 am

Database Listing...

Post by maxfavela »

Is there a way to set fixed numbers, for id's of
every listing inputed into my database?

Also, is there a protocol or program, or code
I can use to automatically remove duplicates?



Appreciate your time.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

  1. That's what an AUTO_INCREMENT tagged field is for.
  2. I'd start by setting certain fields to UNIQUE, or possibly looking in the database to see if a the record you'd like to insert already exists that way duplicates don't happen "normally"
Post Reply