code_junkie

SQL Server data/input validation

Nov 13th, 2011
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. ([id] [int] identity(1,1), [name] [nvarchar], [magicvalue] [int])
  2.  
  3. CREATE TABLE [dbo].[SalesHistory](
  4. [SaleID] [int] NOT NULL,
  5. [Product] [char](150) NULL,
  6. [SaleDate] [datetime] NULL,
  7. [SalePrice] [money] NULL CHECK (SalePrice > 4)
  8.  
  9. )
Add Comment
Please, Sign In to add comment