[SQL server 2000] integer datatype problemen

Pagina: 1
Acties:
  • 49 views sinds 30-01-2008

  • Venxir
  • Registratie: Augustus 2001
  • Laatst online: 09:22
Ik zit met een vaag probleem:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CREATE TABLE Vlucht
(
vluchtnummer        integer(4)  NOT NULL,
Luchthaven      char(3),
Gate            char(1),
max_aantal      integer(3)  NOT NULL,
max_totaalGewicht   numeric(6,2)    NOT NULL,
max_ppgewicht       numeric(5,2)    NOT NULL,
tijdstip        char(4),
Maatschappij        char(2)     NOT NULL,
PRIMARY KEY (vluchtnummer)      
);

INSERT INTO Vlucht
VALUES (5310, 'DUB', 'C', 120, 2500, 20, 'HELP', 'KL')


Lijkt mij niks mis mee, maar SQL server 2000 geeft deze error terug:
code:
1
2
Server: Msg 2716, Level 16, State 1, Line 1
Column or parameter #1: Cannot specify a column width on data type int.


Ik zit nu al een uur te zoeken naar een oplossing, misschien is hij heel voor de hand maar ik zie hem echt niet. Wie kan me helpen? :?

Edit: let niet op de HELP :+

[ Voor 6% gewijzigd door Venxir op 10-11-2005 19:27 ]

If it aint broke, fix it till it is!


  • StarLite
  • Registratie: Januari 2000
  • Laatst online: 01-12-2025

StarLite

'ON ERROR RESUME NEXT

Zoals er staat, je mag een int geen size megeven, je hebt int of bigint voor verschillende groottes

tyrips, tywreps, tiewreps, tiereps, tie raps, ripties, taiwraps, kabelbindbandjes » Tie Wraps
\o/


  • Rath
  • Registratie: April 2002
  • Laatst online: 18-02 10:59
Column or parameter #1: Cannot specify a column width on data type int.

==> spreekt toch voor zich, niet??

I don't believe we have a society, we have a colony of animals


  • Venxir
  • Registratie: Augustus 2001
  • Laatst online: 09:22
En dat was de oplossing, bedankt StarLite ;)

If it aint broke, fix it till it is!


  • whoami
  • Registratie: December 2000
  • Laatst online: 00:06
Tja, dit is gewoon een gevalletje begrijpend lezen.

https://fgheysels.github.io/


Dit topic is gesloten.