3 回答

TA貢獻(xiàn)1836條經(jīng)驗(yàn) 獲得超3個(gè)贊
STORED
CREATE TABLE tbl ( int1 int, int2 int, product bigint GENERATED ALWAYS AS (int1 * int2) STORED);
VIRTUAL
函數(shù)調(diào)用的屬性表示法產(chǎn)生錯(cuò)誤
在那之前VIRTUAL
tbl.col
將公共查詢存儲(chǔ)為列?
SELECT * FROM tbl
IMMUTABLE
CREATE FUNCTION col(tbl) ... AS ... -- your computed expression hereCREATE INDEX ON tbl(col(tbl));
備選方案
VIEW
SELECT *
STORED
物化觀點(diǎn)
- 3 回答
- 0 關(guān)注
- 532 瀏覽
添加回答
舉報(bào)