1
create table sl_rep_winners(
    slnum INT (12),
    zone INT, 
    city nvarchar(200), 
    county nvarchar(200), 
    town nvarchar(200)
);

I get a "missing right parenthesis" error. What is the reason of error?

Mat
  • 202,337
  • 40
  • 393
  • 406
cekik
  • 63
  • 11

1 Answers1

1

If you are using Oracle:

create table sl_rep_winners 
(    
    slnum number(12), 
    zone number(10), 
    city varchar2(200), 
    county varchar2(200), 
    town varchar2(200)
);

INTEGER is supported as an ANSI datatype but gets converted to the equivalent Oracle datatype which is number().

FYI: nvarchar & varchar2

Georgy
  • 428
  • 2
  • 16
  • 1
    It might be worth noting that `number(12)` supports a maximum value of `999999999999` which is much larger than the maximum value supported by MySQL's `int` data type. –  Dec 07 '18 at 07:31