table-nation-rank
INSERT INTO cycling.nation_rank (
nation, info
) VALUES (
'Spain', (1, 'Alejandro VALVERDE', 9054)
);
INSERT INTO cycling.nation_rank (
nation, info
) VALUES (
'France', (2, 'Sylvain CHAVANEL', 6339)
);
INSERT INTO cycling.nation_rank (
nation, info
) VALUES (
'Belgium', (3, 'Phillippe GILBERT', 6222)
);
INSERT INTO cycling.nation_rank (
nation, info
) VALUES (
'Italy', (4, 'Davide REBELLINI', 6090)
);
CREATE INDEX info_idx ON cycling.nation_rank (info);
CREATE CUSTOM INDEX info_idx ON cycling.nation_rank (info) USING 'StorageAttachedIndex';
DESCRIBE INDEX cycling.info_idx;
DESCRIBE INDEX cycling.info_idx;
DROP INDEX IF EXISTS cycling.info_idx;
SELECT * FROM cycling.nation_rank;
SELECT * FROM cycling.nation_rank
WHERE info = (3, 'Phillippe GILBERT', 6222);
SELECT * FROM cycling.nation_rank
WHERE info = (3, 'Phillippe GILBERT', 6222);
CREATE TABLE IF NOT EXISTS cycling.nation_rank (
nation text PRIMARY KEY,
info tuple<int, text, int>
);
DESCRIBE TABLE cycling.nation_rank;
DROP TABLE IF EXISTS cycling.nation_rank;