Search code examples
temp-tablestable-variablesinglestore

memsql does not support temporary table or table variable?


Tried to create temp table in Memsql: Create temporary table ppl_in_grp as select pid from h_groupings where dt= '2014-10-05' and location = 'Seattle'

Got this error: Feature 'TEMPORARY tables' is not supported by MemSQL.

Is there any equivalence I can use instead? Thanks!


Solution

  • temp tables are definitely on the roadmap. For now, with MemSQL 4 you can create a regular table and clean it up at the end of your session, or use subqueries.