comparison flys-aft/src/main/resources/sql/flys-common.properties @ 4097:83c72bc07591

Load all discharge tables from AFT and FLYS of a gauge which needs updating. flys-aft/trunk@3618 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 06 Jan 2012 18:32:08 +0000
parents 82f5266f881b
children 8ba11e13ae8a
comparison
equal deleted inserted replaced
4096:82f5266f881b 4097:83c72bc07591
11 VALUES (:id, :gauge_id, :description, 0, :time_interval_id) 11 VALUES (:id, :gauge_id, :description, 0, :time_interval_id)
12 select.discharge.table.values = SELECT id, w, q FROM discharge_table_values WHERE table_id = :table_id 12 select.discharge.table.values = SELECT id, w, q FROM discharge_table_values WHERE table_id = :table_id
13 next.discharge.table.values.id = SELECT NEXTVAL('DISCHARGE_TABLE_VALUES_ID_SEQ') AS discharge_table_values_id 13 next.discharge.table.values.id = SELECT NEXTVAL('DISCHARGE_TABLE_VALUES_ID_SEQ') AS discharge_table_values_id
14 insert.discharge.table.value = INSERT INTO discharge_table_values (id, table_id, w, q) VALUES (:id, :table_id, :w, :q) 14 insert.discharge.table.value = INSERT INTO discharge_table_values (id, table_id, w, q) VALUES (:id, :table_id, :w, :q)
15 delete.discharge.table.value = DELETE FROM discharge_table_values WHERE id = :id 15 delete.discharge.table.value = DELETE FROM discharge_table_values WHERE id = :id
16 select.gauge.discharge.tables = SELECT dt.id AS id, dt.description AS description, ti.start_time AS start_time, ti.stop_time AS stop_time \
17 FROM discharge_tables dt LEFT OUTER JOIN time_intervals ti ON dt.time_interval_id = ti.id \
18 WHERE gauge_id = :gauge_id

http://dive4elements.wald.intevation.org