Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2005
    Posts
    1

    Question Unanswered: how to create a sequence invoice number and insert or update to a column?

    Hi, can anyone teach me how to automatic create a invoice number and insert or update it to a column?

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    search in your nearest textbook or search engine for "sql server IDENTITY column"
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  3. #3
    Join Date
    Jun 2003
    Location
    Ohio
    Posts
    12,592
    Provided Answers: 1
    C'mon Rudy. You know what is coming next:

    "I want my invoice number to have a product code in it, and I want it to look up the last number used for each product code and increment it."
    If it's not practically useful, then it's practically useless.

    blindman
    www.chess.com: "sqlblindman"
    www.LobsterShot.blogspot.com

Posting Permissions

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