Link to home
Start Free TrialLog in
Avatar of dasvinay
dasvinay

asked on

Equivalent of sqlserver's COLLATE in Oracle

Hi,

What is the equivalent of 'COLLATE'  in Oracle 91 ? Does oracle need it ?
I am trying to migrate some sqlserver scripts into oracle.

create table [Stats] (
[id] [int]  not null,
[entity] [varchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY];

CREATE  INDEX [IX_UserID] ON [Stats]([id]) ON [PRIMARY];
 
Thanks
Avatar of Arthur_Wood
Arthur_Wood
Flag of United States of America image

for ORACLE, the equivalent CONCEPT is NLS (National Language Support).  ORACLE does NOT need the NLS declared on the table, so you should drop the COLLATE SQL_Latin1_General_CP1_CI_AS from the SQL, before you apply it to your ORACLE database.

Also, you should change all varchar fields to varchar2 (for ORACLE), and also drop the [ and ] from the SQL for the table definitions.

AW
ASKER CERTIFIED SOLUTION
Avatar of Arthur_Wood
Arthur_Wood
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dasvinay
dasvinay

ASKER

Excellent Man !! Thanks