Posted: 30.12.2009, 03:16
by baba
Hello,
this is the full create. It´s the same for all Numeric Fields.
-----------------------------------------------------------------------
EXAMPLE:
preis_01_t character varying(40), // Tip/Hint
preis_01_1 numeric(7,2), // Price 1 - 9.50 - in the Grid: 950
preis_01_2 numeric(7,2), // Price 2
preis_01_3 numeric(7,2), // ...
preis_01_4 numeric(7,2),
preis_01_5 numeric(7,2),
s1_mwst numeric(1), // Tax
-----------------------------------------------------------------------
Zeos 6.6
Lazarus 0.9.28.1 r22267 FPC 2.2.4 i386-win32-win32/win64
-- Table: test.preise
-- DROP TABLE test.preise;
CREATE TABLE test.preise
(
id serial NOT NULL,
"lock" character varying(5),
datum date,
zeit character varying(5),
sachbear character varying(20),
titel character varying(40),
standard character varying(1),
fr_prs numeric(10,2),
fr_mwst numeric(1),
hp_prs numeric(10,2),
hp_mwst numeric(1),
vp_prs numeric(10,2),
vp_mwst numeric(1),
s1_txt character varying(20),
s1_prs numeric(10,2),
s1_mwst numeric(1),
s2_txt character varying(20),
s2_prs numeric(10,2),
s2_mwst numeric(1),
s3_txt character varying(20),
s3_prs numeric(10,2),
s3_mwst numeric(1),
datum_1 date,
datum_2 date,
preis_01_t character varying(40),
preis_01_1 numeric(7,2),
preis_01_2 numeric(7,2),
preis_01_3 numeric(7,2),
preis_01_4 numeric(7,2),
preis_01_5 numeric(7,2),
preis_02_t character varying(40),
preis_02_1 numeric(7,2),
preis_02_2 numeric(7,2),
preis_02_3 numeric(7,2),
preis_02_4 numeric(7,2),
preis_02_5 numeric(7,2),
preis_03_t character varying(40),
preis_03_1 numeric(7,2),
preis_03_2 numeric(7,2),
preis_03_3 numeric(7,2),
preis_03_4 numeric(7,2),
preis_03_5 numeric(7,2),
preis_04_t character varying(40),
preis_04_1 numeric(7,2),
preis_04_2 numeric(7,2),
preis_04_3 numeric(7,2),
preis_04_4 numeric(7,2),
preis_04_5 numeric(7,2),
preis_05_t character varying(40),
preis_05_1 numeric(7,2),
preis_05_2 numeric(7,2),
preis_05_3 numeric(7,2),
preis_05_4 numeric(7,2),
preis_05_5 numeric(7,2),
preis_06_t character varying(40),
preis_06_1 numeric(7,2),
preis_06_2 numeric(7,2),
preis_06_3 numeric(7,2),
preis_06_4 numeric(7,2),
preis_06_5 numeric(7,2),
preis_07_t character varying(40),
preis_07_1 numeric(7,2),
preis_07_2 numeric(7,2),
preis_07_3 numeric(7,2),
preis_07_4 numeric(7,2),
preis_07_5 numeric(7,2),
preis_08_t character varying(40),
preis_08_1 numeric(7,2),
preis_08_2 numeric(7,2),
preis_08_3 numeric(7,2),
preis_08_4 numeric(7,2),
preis_08_5 numeric(7,2),
preis_09_t character varying(40),
preis_09_1 numeric(7,2),
preis_09_2 numeric(7,2),
preis_09_3 numeric(7,2),
preis_09_4 numeric(7,2),
preis_09_5 numeric(7,2),
preis_10_t character varying(40),
preis_10_1 numeric(7,2),
preis_10_2 numeric(7,2),
preis_10_3 numeric(7,2),
preis_10_4 numeric(7,2),
preis_10_5 numeric(7,2),
preis_11_t character varying(40),
preis_11_1 numeric(7,2),
preis_11_2 numeric(7,2),
preis_11_3 numeric(7,2),
preis_11_4 numeric(7,2),
preis_11_5 numeric(7,2),
preis_12_t character varying(40),
preis_12_1 numeric(7,2),
preis_12_2 numeric(7,2),
preis_12_3 numeric(7,2),
preis_12_4 numeric(7,2),
preis_12_5 numeric(7,2),
preis_13_t character varying(40),
preis_13_1 numeric(7,2),
preis_13_2 numeric(7,2),
preis_13_3 numeric(7,2),
preis_13_4 numeric(7,2),
preis_13_5 numeric(7,2),
preis_14_t character varying(40),
preis_14_1 numeric(7,2),
preis_14_2 numeric(7,2),
preis_14_3 numeric(7,2),
preis_14_4 numeric(7,2),
preis_14_5 numeric(7,2),
preis_15_t character varying(40),
preis_15_1 numeric(7,2),
preis_15_2 numeric(7,2),
preis_15_3 numeric(7,2),
preis_15_4 numeric(7,2),
preis_15_5 numeric(7,2),
preis_16_t character varying(40),
preis_16_1 numeric(7,2),
preis_16_2 numeric(7,2),
preis_16_3 numeric(7,2),
preis_16_4 numeric(7,2),
preis_16_5 numeric(7,2),
preis_mwst numeric(1),
CONSTRAINT test_preise_pkey PRIMARY KEY (id)
)
WITH (OIDS=FALSE);
ALTER TABLE test.preise OWNER TO postgres;