sql >> Database >  >> RDS >> Sqlserver

Tabel maken met identiteitskolom

CREATE TABLE [dbo].[History](
    [ID] [int] IDENTITY(1,1) NOT NULL,
    [RequestID] [int] NOT NULL,
    [EmployeeID] [varchar](50) NOT NULL,
    [DateStamp] [datetime] NOT NULL,
 CONSTRAINT [PK_History] PRIMARY KEY CLUSTERED 
(
    [ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON)
) ON [PRIMARY]


  1. SQLite - ORDER OP RAND()

  2. Wat zijn de voor- en nadelen van het uitvoeren van berekeningen in sql versus in uw toepassing?

  3. Gesimuleerde OLAP

  4. Android Sqlite-database openen in fragment