AMIScript: SQL¶
For this demonstration we need to include company.db and university.db sqlite databases as datasources into AMI. For better comprehension, the examples should be executed in the order presented
CREATE¶
CREATE AS¶
INSERT INTO ... VALUES¶
INSERT INTO ... FROM¶
INSERT INTO ... BYNAME FROM¶
ALTER¶
RENAME¶
DESCRIBE¶
SELECT¶
UPDATE¶
USE ... EXECUTE¶
USE ... SHOW¶
USE ... INSERT¶
SYNC¶
DELETE FROM¶
TRUNCATE¶
DROP¶
Historical Tables¶
CREATE¶
Likewise, you could declare a '''BITMAP, FLAT, VARSIZE''' column in a similar manner. The general
format is '''
CALL __OPTIMIZE_HISTORICAL_TABLE¶
AMIHDB has a unique optimization procedure that helps optimize the storage of data in the historical table and writes it to disk. To call this procedure, the syntax is as follows:
DIAGNOSE¶
In order for the end user to have a detailed view of a particular historical table, we can use the following syntax to diagnose the table: