Search
 
SCRIPT & CODE EXAMPLE
 

SQL

Enum in SQL Server

USE WorldofWarcraft;

CREATE TABLE [users]
(
   ID INT NOT NULL IDENTITY(1,1) PRIMARY KEY,
   username nvarchar(255),
   password nvarchar(255),
   mail nvarchar (255),
   [rank]  nvarchar (255) NOT NULL CHECK ([rank] IN('Fresh meat', 'Intern','Janitor','Lieutenant','Supreme being')) DEFAULT 'Fresh meat'
);

Comment

PREVIOUS NEXT
Code Example
Sql :: pl sql auto increment 
Sql :: ERROR: permission denied for table accounts postgresql 13 
Sql :: get size of mysql database 
Sql :: postgres stored procedure 
Sql :: sql drop all tables 
Sql :: unique key in sql 
Sql :: sqlite clear shell 
Sql :: sql rename column in select 
Sql :: sql server find all referencing objects to user-defined table type 
Sql :: how to add new column with default value in sql server 
Sql :: last 2 mins sql server 
Sql :: time in sql server 
Sql :: round .5 to 1 in sql server 
Sql :: compare field sql server 
Sql :: mysql regex phone number 
Sql :: mssql coalesce 
Sql :: create temp table sql 
Sql :: Host ' is not allowed to connect to this MySQL server 
Sql :: triggers in mysql example 
Sql :: how to verify sequence result in oracle SQL 
Sql :: mysqldump password in file 
Sql :: mysql dump structure only 
Sql :: Find the names of sailors who have reserved a red boat, and list in the order of age 
Sql :: REMOVE DATE FROM DATE TIME SQL SERVER 
Sql :: postgres insert new row advance count 
Sql :: sql: extract day text from datetime value 
Sql :: hour differeence in mysql 
Sql :: postgresql connect 
Sql :: sql date before 
Sql :: add column sql 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =