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

Thread: Unique Key Syntax

Threaded View

  1. #5
    Join Date
    Sep 2001
    Location
    Düsseldorf, Germany.
    Posts
    588
    You are trying to create UNIQUE constraint on column WISP_NAME, but it has duplicate contents.

    Code:
    SELECT * FROM pronto_wisp
    WHERE ROWID NOT IN 
    ( SELECT MIN(ROWID) FROM pronto_wisp GROUP BY wisp_name)
    Above sql stmt will give you duplicate records for WISP_NAME. You need to delete duplicate entries prior to creating constraint.

    Sameer
    Last edited by Sameer; 12-16-2002 at 08:22 AM.

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