in reply to Re^2: How to find the highest number in a mysql table
in thread How to find the highest number in a mysql table

It is generally a bad idea to have your key field(s) being anything else than an abstract number or code. All it has to be is to be unique. If it refers (even indirectly) to some real world properties, sooner or later you are going to run into trouble.

Believe me, I have been bitten by it several times.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

  • Comment on Re^3: How to find the highest number in a mysql table