Search
 
SCRIPT & CODE EXAMPLE
 

SQL

phone number sql

phone varchar(15) NOT NULL UNIQUE, 
-- Here is a good column for phone number with datatype varchar(15)
Comment

phone no data type in sql server

create table MyTable
(
    PhoneNumber char(10)
        constraint CK_MyTable_PhoneNumber check (PhoneNumber like '[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]')
)
Comment

what data type to use for phone number in sql

phone varchar(10) NOT NULL UNIQUE
Comment

phone number data type in sql

Phone number can be INT and also you type as varchar
Comment

datatype for phone number in sql

You can use char(15) i would use 15 instead of 10 as some international numbers can be up to 15 digits
Or you could use Varchar(19) to cater for other characters and country codes e.g. +123 etc...
Comment

PREVIOUS NEXT
Code Example
Sql :: sql alchemy escape ; in insert statement 
Sql :: oracle query to find schema you are working on 
Sql :: normalization in database 2nd normal form 
Sql :: dollar format in sql server 
Sql :: sqlite ignore index 
Sql :: ejecutar script sql 
Sql :: python mysqlclient library not found for -lssl 
Sql :: database schema for mcqs type exam in sql 
Sql :: codeigniter MySQL - Issue with SELECT & GROUP BY 
Sql :: unable to install sql server (setup.exe) exit code (decimal) 
Sql :: sql interview questions 
Sql :: primary key in sql 
Sql :: subquery in Insert 
Sql :: select all same column value in sql 
Sql :: oracle temp tablespace size 
Sql :: sql first day quarter 
Sql :: flask sqlalchemy session delete 
Sql :: module operator in oracle sql 
Sql :: raven ql select count 
Csharp :: count number of enum values C# 
Csharp :: how to change scenes on collision unity 
Csharp :: unity key detection 
Csharp :: use enter key unity 
Csharp :: unity mouse position to world 
Csharp :: unity mouse click m 
Csharp :: get unix time in seconds C# 
Csharp :: how to get the startup path in console app 
Csharp :: how to print in c# 
Csharp :: c# random boolean 
Csharp :: C# save pdf stream to file 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =