Solved

User database

Posted on 2003-10-28
5
170 Views
Last Modified: 2010-04-01
Can anyone point me in the direction of the SQL DDL for a standard website user database? E.g. username, password, address etc.
 
Perhaps as part of a larger ecommerce db?
0
Comment
Question by:CEHJ
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 3

Expert Comment

by:krispols
ID: 9648384
create table USERS(
USR_ID numeric(10,0) identity,
USR_LOGIN varchar(20) not null,
USR_PWD varchar(15) not null,
USR_PWD_PHRASE varchar(100) null,
USR_PWD_ANSWER varchar(100) null,
USR_EMAIL varchar(50) not null,
USR_EMAIL_OK char(1) not null,
USR_CREATED_DATE datetime not null,
USR_CHANGE_DATE datetime not null)

the field USR_EMAIL_OK is must be set to 'N' until user confirm his email address by answer to the confirm email, then set to 'O'.

regards
0
 
LVL 86

Author Comment

by:CEHJ
ID: 9652799
OK thanks. I'm toying with the notion of there being no id column though. Possibly email as PK...
0
 
LVL 3

Accepted Solution

by:
krispols earned 50 total points
ID: 9662328
hello CEHJ,

Carrefull with PK on varchar type, it's really slowest than on numric type. It's also consume more disk space to build the index.

regards
0
 
LVL 86

Author Comment

by:CEHJ
ID: 9665975
That's a point, thanks.
0
 
LVL 86

Author Comment

by:CEHJ
ID: 10226152
Thanks. Although i've still not come  to a decision on how these things should be done!
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to import Lotus Notes Contacts into Outlook 2016, 2013, 2010 and 2007 etc. with a few manual steps. You can easily export and migrate Lotus Notes contacts into Microsoft Outlook without having to use any third party tools.
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question