|
slackerksg5
Starting Member
3 Posts |
Posted - 2008-02-04 : 14:23:29
|
| Maybe this will help.create table section(s_id integer primary key,s_guid integer,job_id integer not null,node1_id integer,node2_id integer,s_node1_icon integer,s_node2_icon integer,s_parent_ID integer,s_name varchar(64) not null,s_type integer,s_length numeric,s_uom varchar(8),s_readonly bit,s_material integer,s_shape integer,s_diameter numeric,s_width numeric,s_lining integer,s_seg_length numeric,s_year_built integer,s_year_renewed integer,s_street varchar(128),s_city varchar(128),s_division varchar(32),s_district varchar(32),s_drain_area varchar(32),s_map_number varchar(32),s_owner varchar(32),s_category integer,s_area integer,s_location integer,s_location_details varchar(255),s_notes varchar(255),s_no_taps integer,s_house_no varchar(6),s_post_dir integer,s_pre_dir integer,s_svc_ln_depth numeric,s_subarea integer,s_suffix varchar(4),s_surface_type integer,s_tap_dist numeric,s_tfnode_id integer,s_joint_type integer,s_district_id integer,s_assigned bit,s_televised bit,s_new_asset bit,constraint fk_node2_id foreign key(node2_id)references node(n_id),constraint fk_node1_id foreign key(node1_id)references node(n_id),constraint fk_tfnode_id foreign key(s_tfnode_id)references node(n_id),constraint fk_s_job_id foreign key(job_id)references job(j_id));Oh and sorry I didn't explain what :index was. :index is a counter that increases when you press the "Next" button to view the next report.so if there are 30 sections than index would = 1-30 |
 |
|