cancel
Showing results for 
Search instead for 
Did you mean: 

is it SUBSTR ?

Former Member
0 Kudos

1) Changing a column from Sql Server to Oracle using the below mapping rule

varchar(5) -> 2 char cut off ->VARCHAR2 (5 BYTE)

Accepted Solutions (1)

Accepted Solutions (1)

former_member208402
Active Contributor

Hi Navya,

Just create target table in oracle with required column data types and load the data.

Cut off after 5 characters --- You can use SUBSTR() function to cut a string.

Answers (1)

Answers (1)

former_member208402
Active Contributor
0 Kudos

Hi navya sinha,

while creating target table, you can specify that column to default null like below and you can also pass NULL in the query transform mapping for this column.

CREATE TABLE Persons (
ID int NOT NULL,
LastName varchar(255) NOT NULL,
FirstName varchar(255),
Age int DEFAULT NULL,
City varchar(255) DEFAULT 'Sandnes'
);