Search
 
SCRIPT & CODE EXAMPLE
 

SQL

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 :: SOQL Child to parent 
Sql :: where to find job 0x.. in ddlevents 
Sql :: ORA-32794: cannot drop a system-generated sequence 
Sql :: ! Wildcard in SQL 
Sql :: kie business put user infos in database 
Sql :: mysql drop table 
Sql :: script all indexes in a database 
Sql :: sql interview questions 
Sql :: what is group function in sql 
Sql :: in operator in sql 
Sql :: my sql alter table 
Sql :: modify column name in tsql 
Sql :: mysql select all table that have field names 
Sql :: oracle sql first day of quarter 
Sql :: sql int size 
Sql :: mask data in sql 
Sql :: Resolved [java.sql.SQLException: ORA-29977: Unsupported column type for query registration in guaranteed mode ] 
Csharp :: reload scene unity 
Csharp :: c# yes or no dialog 
Csharp :: c sharp how to read a text file 
Csharp :: unity how to refrsh scene 
Csharp :: c# alphabet array 
Csharp :: c# get file size in bytes 
Csharp :: how to disable and enable rigidbody unity 
Csharp :: Change fog setting Unity 
Csharp :: c# print to console 
Csharp :: how to get the directory of the project in c# 
Csharp :: C# previous method 
Csharp :: easily start admin process from service c# 
Csharp :: how to get all files from folder and subfolders in c# 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =