SQL Server/T-SQL Tutorial/Data Types/Smallint — различия между версиями

Материал из SQL эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Текущая версия на 13:25, 26 мая 2010

Smallint type

   <source lang="sql">

2> CREATE TABLE discounts( 3> discounttype varchar(40) NOT NULL, 4> stor_id char(4) NULL , 5> lowqty smallint NULL, 6> highqty smallint NULL, 7> discount dec(4,2) NOT NULL 8> ) 9> GO 1> 2> insert discounts values("Initial Customer", NULL, NULL, NULL, 10.5) 3> insert discounts values("Volume Discount", NULL, 100, 1000, 6.7) 4> insert discounts values("Customer Discount", "8042", NULL, NULL, 5.0) 5> GO (1 rows affected) (1 rows affected) (1 rows affected) 1> 1> drop table discounts; 2> GO</source>