MySQL Forums
Forum List  »  MySQL Query Browser

Re: Editing table data
Posted by: Michael G. Zinner
Date: June 26, 2005 04:05PM

Please make sure you _always_ have a primary key column in each table. When there is no primary key, it is impossible to say which row has been edited. And therefore Query Browser cannot write back the data you entered.

A good practice is, to _always_ have a primary key in each table. I usually make the first column in a table the primary key and I name it "id<tablename>".

And I always make it an INTEGER column. This gains me a lot more speed than to use a VARCHAR column or whatever when I join with other tables later on.

Mike

Michael Zinner, Team Lead, Developer Tools
MySQL AB, www.mysql.com

Are you MySQL certified? www.mysql.com/certification

Options: ReplyQuote


Subject
Written By
Posted
June 25, 2005 12:42PM
Re: Editing table data
June 26, 2005 04:05PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.