Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js
Home  • Database • Microsoft SQL Server

Create a unique constraint that also allows nulls in MSSQL Server

SQL Server
  1. CREATE UNIQUE NONCLUSTERED INDEX uni_lot_master_doc_ref
  2. ON item_lot_master(doc_ref)
  3. WHERE doc_ref IS NOT NULL;

Comments 0


Copyright © 2025. Powered by Intellect Software Ltd