On Aug 8, 2007, at 0:30 , novice wrote:
CREATE TABLE meter ( meter_id integer NOT NULL, area_no integer NOT NULL, CONSTRAINT meter_pkey PRIMARY KEY (meter_id) ) ; INSERT INTO meter(meter_id, no_of_bays) VALUES (1001, 4); INSERT INTO meter(meter_id, no_of_bays) VALUES (1012, 6);
Your insert columns don't match your table.
How can I generate the following result? meter_id | bay ----------+------------ 1001 | 01
Your column headers don't match your table definition *or* your insert statements. I'm not sure what you're trying to do. Can you explain the result you want? (And in the future, please post actual DDL and statements.)
Michael Glaesemann grzm seespotcode net ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings