Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2010
    Posts
    1

    help design database to store temp data

    please help

    I want to design database for my software that generate a random number 0-1000 every minute but that number must not duplicate with latest 500 numbers

    how can i design the database tables to store the latest 500 numbers in my database and generate the random number with no duplicate the latest 500 numbers

    my table that I use currently is like this
    I have 1 column named
    LatestNumbers and store String "99,284,33,1,784,411,..."

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    Code:
    CREATE TABLE latestnumbers
    ( latestnumber INTEGER NOT NULL PRIMARY KEY
    );
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

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