Вы находитесь на странице: 1из 55

Fro

To
BIT[(M)]
TINYINT[(M)] [UNSIGNED] [ZEROFILL]
BOOL, BOOLEAN
SMALLINT[(M)] [UNSIGNED] [ZEROFILL]
MEDIUMINT[(M)] [UNSIGNED] [ZEROFILL]
INT[(M)] [UNSIGNED] [ZEROFILL]
INTEGER[(M)] [UNSIGNED] [ZEROFILL]
BIGINT[(M)] [UNSIGNED] [ZEROFILL]
FLOAT[(M,D)] [UNSIGNED] [ZEROFILL]
DOUBLE[(M,D)] [UNSIGNED] [ZEROFILL]
DOUBLE PRECISION[(M,D)] [UNSIGNED] [ZEROFILL], REAL[(M,D)] [UNSIGNED] [ZEROFILL]
FLOAT(p) [UNSIGNED] [ZEROFILL]
DECIMAL[(M[,D])] [UNSIGNED] [ZEROFILL]
DEC[(M[,D])] [UNSIGNED] [ZEROFILL], NUMERIC[(M[,D])] [UNSIGNED] [ZEROFILL], FIXED[(M[,D])] [UNS
DATE
DATETIME
TIMESTAMP
TIME
YEAR[(2|4)]
[NATIONAL] CHAR[(M)] [CHARACTER SET charset_name] [COLLATE collation_name]
[NATIONAL] VARCHAR(M) [CHARACTER SET charset_name] [COLLATE collation_name]
BINARY(M)
VARBINARY(M)
TINYBLOB
TINYTEXT [CHARACTER SET charset_name] [COLLATE collation_name]
BLOB[(M)]
TEXT[(M)] [CHARACTER SET charset_name] [COLLATE collation_name]
MEDIUMBLOB
MEDIUMTEXT [CHARACTER SET charset_name] [COLLATE collation_name]
LONGBLOB
LONGTEXT [CHARACTER SET charset_name] [COLLATE collation_name]
ENUM('value1','value2',...) [CHARACTER SET charset_name] [COLLATE collation_name
SET('value1','value2',...) [CHARACTER SET charset_name] [COLLATE collation_name]

works simply alter


needs validated value
transform has no real sense
works alter but may occur range violation,
size violation
won't transform or sucess only on null value

BIT

TINYINT

BOOL, BOOLEAN SMALLINT

mariusz:
transforming from the type with bigger range to other with smaller one may cause loss of precision or even overflow error

mariusz:
transforming from the type with bigger range to other with smaller one may cause loss of precision o

D] [ZEROFILL]

OFILL], FIXED[(M[,D])] [UNSIGNED] [ZEROFILL]


loss of precision also
loss of precision also
loss of precision also

on_name]

compatible values needed


compatible values needed

size
size
size
size

<
<
<
<

2
2
2
2

size
size
size
size

<
<
<
<

2
2
2
2

size
size
size
size

<
<
<
<

4
4
4
4

compatible values neecompatible valuescompatible


compatible values neecompatible valuescompatible

MEDIUMINT

INT

INTEGER

BIGINT

FLOAT

DOUBLE

on or even overflow error

smaller one may cause loss of precision or even overflow error

size
size
size
size

<
<
<
<

6
6
6
6

size
size
size
size

<
<
<
<

9
9
9
9

size
size
size
size

<
<
<
<

9
9
9
9

compatible va compatible compatible vcompatiblcompatiblcompatible


compatible va compatible compatible vcompatiblcompatiblcompatible

DOUBLE PRECISION

FLOAT(p)

DECIMAL

DEC

DATE

loss of
loss of
loss of
loss of
loss of
loss of
loss of
loss of
loss of
loss of
loss of
loss of
compatible values neede compatible vacompatible compatible values needed
compatible values neede compatible vacompatible compatible values needed

precission
precission
precission
precission
precission
precission
precission
precission
precission
precission
precission
precission

DATETIME

TIMESTAMP

mariusz:
YEAR[(2|4)]
max length 255

TIME

loss
loss
loss
loss
loss
loss
loss
loss
loss
loss
loss
loss

of
of
of
of
of
of
of
of
of
of
of
of

precission
precission
precission
precission
precission
precission
precission
precission
precission
precission
precission
precission

mariusz:
max length 21845

mariusz:
CHAR
max length 21845

value
value
value
value
value
value
value
value
value
value
value
value
value
value

must
must
must
must
must
must
must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be
be
be
be
be
be
be

value
value
value
value
value

must
must
must
must
must

be
be
be
be
be

mariusz:
max length 255
possible of
mariusz:
mariusz:
VARCHAR(M)
leaving trash
max length 65535 max length
signs on the end
255
of the value after
number
updating to
shorter value

number
number
number
number
number
number
number
number
number
number
number
number
number

value
value
value
value
value
value
value
value
value
value
value
value
value

must
must
must
must
must
must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be
be
be
be
be
be

number
number
number
number
number
number
number
number
number
number
number
number
number

date
date
date
date
date

value
value
value
value
value

must
must
must
must
must

be
be
be
be
be

date
date
date
date
date

mariusz:
max length 255

one of the values must be one of the values must be included


one of the values must be one of the values must be included

BINARY(M)

mariusz:
max length 255

mariusz:
VARBINARY(M)
mariusz:
max length
65535
max length
65535

TINYBLOB

must
must
must
must
must
must
must
must
must
must
must
must
must
must

fixed
fixed
fixed
fixed
fixed
fixed
fixed
fixed
fixed
fixed
fixed
fixed
fixed
fixed

length
length
length
length
length
length
length
length
length
length
length
length
length
length

value
value
value
value
value
value
value
value
value
value
value
value
value

must
must
must
must
must
must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be
be
be
be
be
be

number
number
number
number
number
number
number
number
number
number
number
number
number

value
value
value
value
value
value
value
value
value
value
value
value
value

must
must
must
must
must
must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be
be
be
be
be
be

number
number
number
number
number
number
number
number
number
number
number
number
number

must
must
must
must
must

fixed
fixed
fixed
fixed
fixed

length
length
length
length
length

value
value
value
value
value

must
must
must
must
must

be
be
be
be
be

date
date
date
date
a year

value
value
value
value
value

must
must
must
must
must

be
be
be
be
be

date
date
date
date
a year

one of the values must be included


one of the values must be included

one of the values must be inone of the values must


one of the values must be inone of the values must

TINYTEXT

BLOB

mariusz:
max length
16,777,215

TEXT

value
value
value
value
value
value
value
value
value
value
value
value
value

must
must
must
must
must
must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be
be
be
be
be
be

n value
n value
n value
n value
n value
n value
n value
n value
n value
n value
n value
n value
n value

must
must
must
must
must
must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be
be
be
be
be
be

number
number
number
number
number
number
number
number
number
number
number
number
number

value
value
value
value
value
value
value
value
value
value
value
value
value

must
must
must
must
must
must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be
be
be
be
be
be

number
number
number
number
number
number
number
number
number
number
number
number
number

value
value
value
value
value

must
must
must
must
must

be
be
be
be
be

d value
d value
d value
d value
a value

must
must
must
must
must

be
be
be
be
be

date
date
date
date
a year

value
value
value
value
value

must
must
must
must
must

be
be
be
be
be

date
date
date
date
a year

one of the value one of the values must be incone of the values must be i
one of the value one of the values must be incone of the values must be i

MEDIUMBLOB

MEDIUMTEXT

LONGBLOB

mariusz:
max length 16,777,215

value
value
value
value
value
value
value
value
value
value
value
value
value

must
must
must
must
must
must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be
be
be
be
be
be

numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue

must
must
must
must
must
must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be
be
be
be
be
be

numvalue
numvalue
numvalue
numvalue
numvalue
numvalue
numvalue
numvalue
numvalue
numvalue
numvalue
numvalue
numvalue

must
must
must
must
must
must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be
be
be
be
be
be

n
n
n
n
n
n
n
n
n
n
n
n
n

value
value
value
value
value

must
must
must
must
must

be
be
be
be
be

date
date
date
date
a year

must
must
must
must
must

be
be
be
be
be

datevalue
datevalue
datevalue
datevalue
a yevalue

must
must
must
must
must

be
be
be
be
be

da
da
da
da
a

value
value
value
value
value

one of the values mustone of the values one of the value


one of the values mustone of the values one of the value

LONGTEXT

ENUM

7,215

value
value
value
value
value
value
value
value
value
value
value
value
value

must
must
must
must
must
must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be
be
be
be
be
be

number
number
number
number
number
number
number
number
number
number
number
number
number

value
value
value
value
value

must
must
must
must
must

be
be
be
be
be

date
date
date
date
a year

mariusz:
max length
4,294,967,295

one of the values must be included


one of the values must be included one of the values must be included

mariusz: SET
max length
4,294,967,295

e included

http://download.oracle.com/docs/cd/A58617_01/serv From NUMBER


To

NUMBER

INTEGER | INT

DATE (1/1/4712 BC-12/31/9999)

ORA-01439:
column to be
modified must
be empty to
change datatype

INTERVAL DAY TO SECOND ?

ORA-01439:
column to be
modified must
be empty to
change datatype

INTERVAL YEAR TO MONTH ?

ORA-01439:
column to be
modified must
be empty to
change datatype

TIMESTAMP(<precision>)

ORA-01439:
column to be
modified
must be empty to
change datatype

TIMESTAMP WITH TIME ZONE

ORA-01439:
column to be
modified must
be empty to
change datatype

TIMESTAMP WITH LOCAL TIME ZONE

ORA-01439:
column to be
modified must
be empty to
change datatype

CHAR(<chars>)

ORA-01439:
column to be
modified
must be empty to
change datatype

NCHAR(<bytes>)

ORA-01439:
column to be
modified
must be empty to
change datatype

LONG

ORA-01439:
column to be
modified
must be empty to
change datatype

VARCHAR2(<chars>)

ORA-01439:
column to be
modified
must be empty to
change datatype

NVARCHAR2(<bytes>)

ORA-01439:
column to be
modified
must be empty to
change datatype

BFILE

ORA-22858: invalid
alteration of
datatype

BLOB

ORA-22858: invalid
alteration of
datatype

CLOB

ORA-22858: invalid
alteration of
datatype

NCLOB

ORA-22858: invalid
alteration of
datatype

LONG RAW

ORA-01439:
column to be
modified
must be empty to
change datatype

MLSLABEL

ORA-01439:
column to be
modified
must be empty to
change datatype

RAW(<maximum_size_in_bytes>)

ORA-01439:
column to be
modified
must be empty to
change datatype

ROWID - physical row identifier

ORA-01439:
column to be
modified
must be empty to
change datatype

UROWID - universal (IOT)

ORA-01439:
column to be
modified
must be empty to
change datatype

works simply alter


needs validated value
transform
realoccur
sense
works alterhas
butno
may
range violation,
size violation
won't transform
not tested

INT

DATE

INTERVAL

INTERVAL

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified must
be empty to
change datatype

ORA-01439:
column to be
modified must
be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified must
be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified must
be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified must
be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

TIMESTAMP

TIMESTAMP

TIMESTAMP

CHAR
max length 2k

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype
ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

NCHAR
max length 1k

LONG

VARCHAR2
NVARCHAR2
max lebngth 4k max length 2k

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
ORA-01439:
column to be
column to be
modified
modified
must be empty
must be empty to to change
change datatype datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
ORA-01439:
column to be
column to be
modified
modified
must be empty
must be empty to to change
change datatype datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
ORA-01439:
column to be
column to be
modified
modified
must be empty
must be empty to to change
change datatype datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
ORA-01439:
column to be
column to be
modified
modified
must be empty
must be empty to to change
change datatype datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype
ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype
ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty to
change datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

BFILE

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

BLOB

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

CLOB

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

NCLOB

LONG RAW

ORA-22858:
invalid
alteration of
datatype

ORA-01439:
column to be
modified
must be
empty to
change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-01439:
column to be
modified
must be
empty to
change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-01439:
column to be
modified
must be
empty to
change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-01439:
column to be
modified
must be
empty to
change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-01439:
column to be
modified
must be
empty to
change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-01439:
column to be
modified
must be
empty to
change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-01439:
column to be
modified
must be
empty to
change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-01439:
column to be
modified
must be
empty to
change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-01439:
column to be
modified
must be
empty to
change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-01439:
column to be
modified
must be
empty to
change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-01439:
column to be
modified
must be
empty to
change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-01439:
column to be
modified
must be
empty to
change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-01439:
column to be
modified
must be
empty to
change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-01439:
column to be
modified
must be
empty to
change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-01439:
column to be
modified
must be
empty to
change
datatype
ORA-01439:
column to be
modified
must be
empty to
change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-01439:
column to be
modified
must be
empty to
change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-01439:
column to be
modified
must be
empty to
change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-01439:
column to be
modified
must be
empty to
change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-01439:
column to be
modified
must be
empty to
change
datatype

MLS

RAW

ROWID

UROWID

not tested

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

not tested

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

not tested

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

not tested

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

not tested

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

not tested

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

not tested

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

not tested

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

not tested

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

not tested

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

not tested

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

not tested

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

not tested

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

not tested

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

not tested

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

not tested

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

not tested

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-22858:
invalid
alteration of
datatype

ORA-22858:
invalid
alteration of
datatype

not tested

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

not tested

not tested

ORA-01439:
column to be
modified
must be empty
to change
datatype

not tested

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype
ORA-01439:
column to be
modified
must be empty
to change
datatype

ORA-01439:
column to be
modified
must be empty
to change
datatype

From
To
BOOLEAN | BIT
TINYINT
SMALLINT
BIGINT
REAL
INTEGER | INT
DOUBLE [PRECISION] | FLOAT
DECIMAL
NUMERIC
DATE
TIMESTAMP | DATETIME
TIME
VARCHAR
VARCHAR_IGNORECASE
CHAR | CHARACTER
LONGVARCHAR
BINARY
VARBINARY
LONGVARBINARY
OTHER | OBJECT

works simply alter


needs validated value
transform has no real sense
works alter but may occur range violation,
size violation
won't transform or sucess only on null value

BOOLEAN | BIT

TINYINT

SMALLINT

BIGINT

REAL

INTEGER

DOUBLE

DECIMAL NUMERIC

DATE

TIMESTAMP

TIME

VARCHAR

value
value
value
value
value
value
value
value

must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be

number
number
number
number
number
number
number
number

value must be date


value must be date
value must be date

VARCHAR_IGNORECASE

CHAR

value
value
value
value
value
value
value
value

value
value
value
value
value
value
value
value

must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be

number
number
number
number
number
number
number
number

value must be date


value must be date
value must be date

must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be

number
number
number
number
number
number
number
number

value must be date


value must be date
value must be date

LONGVARCHAR

value
value
value
value
value
value
value
value

must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be

BINARY

numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue

value must be date


value must be date
value must be date

must
must
must
must
must
must
must
must

VARBINARY

be
be
be
be
be
be
be
be

n value
n value
n value
n value
n value
n value
n value
n value

must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be

number
number
number
number
number
number
number
number

value must be d value must be date


value must be d value must be date
value must be d value must be date

LONGVARBINARY

OTHER

value
value
value
value
value
value
value
value

value
value
value
value
value
value
value
value

must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be

number
number
number
number
number
number
number
number

value must be date


value must be date
value must be date

must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be

number
number
number
number
number
number
number
number

value must be date


value must be date
value must be date

http://webcoder.info/reference/MSSQLDataTypes.html From bit


To
bit
bigint
int
smallint
tinyint
money
smallmoney
uniqueidentifier
float[(n)]
real
decimal[(p[,s])]
numeric[(p[,s])]
datetime
time
smalldatetime
timestamp
binary[(n)]
varbinary[(n)]
char[(n)]
nchar[(n)]7
nvarchar[(n)]7
varchar[(n)]
text
ntext
image

works simply alter


needs validated value
transform has no real sense
works alter but may occur range violation,
size violation
won't transform or sucess only on null value

bigint

int

smallint

tinyint money

smallmone uniqueidentifier

silent loss of data


silent loss of data

float

real

decimal

numeric

datetime

time

smalldatetime

timestamp

binary

value
value
value
value
value
value
value
value
value
value
value

must
must
must
must
must
must
must
must
must
must
must

varbinary

be
be
be
be
be
be
be
be
be
be
be

numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue

must
must
must
must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be
be
be
be

n
n
n
n
n
n
n
n
n
n
n

char

nchar

value
value
value
value
value
value
value
value
value
value
value

must
must
must
must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be
be
be
be

number
number
number
number
number
number
number
number
number
number
number

value
value
value
value

must
must
must
must

have
have
have
have

valid
valid
valid
valid

in
in
in
in
in
in
in
in
in
in
in

nvarchar

ran value
ran value
ran value
ran value
ran value
ran value
ran value
ran value
ran value
ran value
ran value

must
must
must
must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be
be
be
be

number
number
number
number
number
number
number
number
number
number
number

format value
format value
format value
format value

must
must
must
must

have
have
have
have

valid
valid
valid
valid

in
in
in
in
in
in
in
in
in
in
in

varchar

ravalue
ravalue
ravalue
ravalue
ravalue
ravalue
ravalue
ravalue
ravalue
ravalue
ravalue

must
must
must
must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be
be
be
be

numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue
numbervalue

formavalue
formavalue
formavalue
formavalue

must
must
must
must

have
have
have
have

valid value
valid value
valid value
valid value

mus
mus
mus
mus
mus
mus
mus
mus
mus
mus
mus
mus
mus
mus
mus

text

ntext

image

value
value
value
value
value
value
value
value
value
value
value

must value
must value
must value
must value
must value
must value
must value
must value
must value
must value
must value

must
must
must
must
must
must
must
must
must
must
must

be
be
be
be
be
be
be
be
be
be
be

number
number
number
number
number
number
number
number
number
number
number

value
value
value
value

must value
must value
must value
must value

must
must
must
must

have
have
have
have

valid
valid
valid
valid

in
in
in
in
in
in
in
in
in
in
in

range
range
range
range
range
range
range
range
range
range
range

format
format
format
format

Вам также может понравиться