How to set range for int in sql server -


hey i'm new in sql server wondering if can set range int (when creating table) set range char

testing char(5) not null 

when tried use same way set range in int

testing int(5) not null  

it error, how set range int. if can't can tell me why?

there no int(5) data type in sql server , can make use check constraints put limit/range of values can inserted in column.

google check constraint , this.....

create table mytable ( testing int check (testing > 100 , testing <500), othercol int  ) 

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -