primary key incrementation pls help..

Author Message
demz01

  • Total Posts : 9
  • Scores: 0
  • Reward points : 0
  • Joined: 6/24/2008
  • Status: offline
primary key incrementation pls help.. Saturday, December 20, 2008 6:56 PM (permalink)
0
i have a table "customer" and have a field of "ID"(primary key) with a value of  RESP-000001 and i want it to increment it as RESP-000002 when i add a second record
what specific format should i use??

please help me..  it consume me a lot of time,,
<message edited by demz01 on Sunday, December 21, 2008 10:36 PM>
 
#1
    TNO

    • Total Posts : 2094
    • Scores: 36
    • Reward points : 0
    • Joined: 12/18/2004
    • Location: Earth
    • Status: offline
    RE: primary key incrementation pls help.. Monday, December 29, 2008 1:51 AM (permalink)
    0
    I'm pretty sure you'll have to INSERT it manually. Try Inserting the Count of the table concatenated with your string:

    To iterate is human, to recurse divine. -- L. Peter Deutsch
     
    #2
      demz01

      • Total Posts : 9
      • Scores: 0
      • Reward points : 0
      • Joined: 6/24/2008
      • Status: offline
      RE: primary key incrementation pls help.. Monday, December 29, 2008 6:09 AM (permalink)
      0
      thank you your idea helps me well


       
      #3

        Online Bookmarks Sharing: Share/Bookmark

        Jump to:

        Current active users

        There are 0 members and 1 guests.

        Icon Legend and Permission

        • New Messages
        • No New Messages
        • Hot Topic w/ New Messages
        • Hot Topic w/o New Messages
        • Locked w/ New Messages
        • Locked w/o New Messages
        • Read Message
        • Post New Thread
        • Reply to message
        • Post New Poll
        • Submit Vote
        • Post reward post
        • Delete my own posts
        • Delete my own threads
        • Rate post

        2000-2012 ASPPlayground.NET Forum Version 3.9