Solved

User database

Posted on 2003-10-28
5
165 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
  • 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Display the newly inserted values 3 75
IE doesn't Invoke servlet in iframe 1 111
if statement not resolving in my code 5 51
eclipse buid path vs tomcat lib path 10 22
Troubleshooting common task sequence error codes
Binary Differential Replication, What it is, how it works and how it differs from standard delta file replication
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

808 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