Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2008
    Posts
    29

    Unanswered: unique column in Table

    Hai all,


    i am creating one table like CREATE TABLE XX( CODE NUMBER, NAME VARCHAR(10).

    I AM INSERTING THE 5 RECORDS LIKE

    OUTPUT IS
    --------------

    CODE NAME
    1 A
    2 B
    3 C
    4 D
    2 A

    problem is There is no unique column in that table.

    is there any unique column in ACCESS. like

    for Exp: in SQLBASE is ROWID is unique column.
    in ORACLE is ROWNUM is unique column.


    pls help

    Thanks & Regards

    Narasareddy

  2. #2
    Join Date
    Nov 2007
    Location
    Adelaide, South Australia
    Posts
    4,049
    The is no such thing in MSAccess. You define your own unique ID field in Access.
    Owner and Manager of
    CypherBYTE, Microsoft Access Development Specialists.
    Microsoft Access MCP.
    And all around nice guy!


    "Heck it's something understood by accountants ... so it can't be 'that' difficult..." -- Healdem
    "...teach a man to code and he'll be frustrated for life! " -- georgev

  3. #3
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    there isn't an explcicit data type as such
    however if you make that column the primary key, OR that column have a unique index you will get the same effect

Posting Permissions

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