mysql 臨時表的應用

CREATE TEMPORARY TABLE IF NOT EXISTS testTmpTable ENGINE = MEMORY AS SELECT a.* FROM ( SELECT a.id b.name FROM testA a JOIN testB b ON a.id = b.stu_id WHERE a.id = 10 ORDER BY b.stu_id,b.id DESC ) a G
相關文章
相關標籤/搜索