DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: generate 4 digit number

  1. #1
    Join Date
    May 2002
    Posts
    232
    I have three columns in table, they are
    mobileno,password,status.
    table name -- mobile

    Here i want to 3 procedures based on this table.

    1st proc
    mobileno output parameter
    password and status inputparameter.

    Here my problem is now we are like to send new 4 digit password to users.Previous some of them have alpha numeric
    password.

    purpose---By using this procedure,When i enter mobileno
    If password is 4digit number then display status and password
    If password is Not 4 digit number ,then should generate 4 digit number.

    I hope any one can help me with example
    thanks
    kavitha
    kavitha

  2. #2
    Join Date
    Feb 2000
    Location
    Singapore
    Posts
    1,758
    Use RANDOM function to generate random number.

    http://otn.oracle.com/docs/products/...ra2.htm#999811

    Sanjay

  3. #3
    Join Date
    May 2002
    Posts
    232
    Hiii,Sanjay thanks
    Can u give above example.
    thanks
    kaviths
    kavitha

  4. #4
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Jeff Hunter

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width