21.01.2013 Views

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

A B<br />

1 aa<br />

QVTab2<br />

A C<br />

1 xx<br />

4 yy<br />

The two tables in the keep example are, of course, associated via A.<br />

tab1:<br />

Load * from file1.csv;<br />

tab2:<br />

load * from file2.csv;<br />

.. .. ..<br />

right keep (tab1) load * from file3.csv;<br />

Back to Script Statements and Keywords (page 219).<br />

Replace<br />

The replace prefix can be added to any Load (page 246), Select (SQL) (page 262) or Map ... using (page<br />

254) statement in the script. The replace load/replace select statement has the effect of dropping the entire<br />

<strong>QlikView</strong> table, for which a table name is generated by the replace load/replace select statement, and replacing<br />

it with a new table containing the result of the replace load/replace select statement. The effect is the<br />

same during partial reload and full reload. The replace map...using statement causes mapping to take place<br />

also during partial script execution.<br />

The syntax is:<br />

replace[only](loadstatement |selectstatement |map...usingstatement)<br />

where:<br />

only is an optional qualifier denoting that the statement should be disregarded during normal (non-partial)<br />

reloads.<br />

Examples:<br />

Tab1:<br />

Replace load * from File1.csv;<br />

During both normal and partial reload, the <strong>QlikView</strong> table Tab1 is initially dropped. Thereafter new data is<br />

loaded from File1.csv and stored in Tab1.<br />

Tab1:<br />

Replace only load * from File1.csv;<br />

During normal reload, this statement is disregarded.<br />

260

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!