Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > stored procedure urgent

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-27-02, 00:40
kavitha_28 kavitha_28 is offline
Registered User
 
Join Date: Jun 2002
Location: kl
Posts: 3
stored procedure urgent

CREATE TABLE MOBUSER(
MOBNO VARCHAR2(20) PRIMARY KEY,
PASSWORD VARCHAR2(20),
STATUS VARCHAR2(1));

This table contains 1lack records.
here user passwords contain alpha numeric.
we like to change all old users passwords
and new users as 4 digit numeric password.
So,I need a stord procedure by check the old passwords when
they login and convert that one into numeric.


details of stored procedure
inputparameter mobno
outputparameter : password
: status


if the password not existed(new users) for a particuler user, new random 4 digit password
will be returned.

if the password existed and in the form of alpha-numeric, new random 4 digit

password will be returned.

if 4 digit password existed for that user, initial password will be returned.

MODIFIED TABLE

CREATE TABLE MOBUSER(
MOBNO VARCHAR2(20) PRIMARY KEY,
PASSWORD VARCHAR2(20),
STATUS VARCHAR2(1),
PASSWORD1 NUMBER(4));

here password and password1 are nulls for new users registration.
send me example
many thanks,i need this procedure soon,
any one can send me soon.
thanks
kavitha
__________________
html
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On