You are here: Re: Best way to structure a table? « MySQL Databases « IT news, forums, messages
Re: Best way to structure a table?

Posted by Jerry Stuckle on 09/28/46 11:29

J Mox wrote:
> Hi, I am creating a user name system in which each user is assigned 100 different types of
> permissions. Is it better to create a table with one row for each user and 101 columns (1 for userid
> and 100 for permission values) or 3 columns (1 for userid, 1 for permission id, one for permission
> value) and then 100 rows for each user or something else?
>
>

Two tables. First one has userid and password. Second one has userid
and a permission value.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация