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

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 :: postgresql connection string c# 
Sql :: check lock on table in sql server 
Sql :: plpgsql create function 
Sql :: mysql update with join 
Sql :: mysql select true or false 
Sql :: sql all columns 
Sql :: how to insert json value in mysql 
Sql :: drop a recordin sql 
Sql :: codigo crear tablas sql server 
Sql :: oracle to_char number format percentage 
Sql :: sql query to select records entered in last 24 hours 
Sql :: sql declare variable 
Sql :: sql count null as 0 
Sql :: mysql update two tables at once 
Sql :: update one column from another column in same table 
Sql :: how to know the character set of an oracle databes 
Sql :: sql if empty then 
Sql :: import sql dump into postgresql database 
Sql :: soql last week 
Sql :: select distinct after join 
Sql :: how to create external table in hive 
Sql :: create date sql 
Sql :: flask marshmallow sqlalchemy 
Sql :: allow null in psql 
Sql :: update trigger 
Sql :: object dependencies in oracle 
Sql :: check if value is null mysql 
Sql :: sql convert datetime 
Sql :: postgre insert select 
Sql :: ON DUPLICATE KEY UPDATE for postgres 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =