mysql 有没有像 sqlserver  #temp  ##temp
临时表  系统临时表   (sqlserver非常好用 ,现在又有了表变量)我当前有一组表,系统推出全部删除,启动时候全部新建,
就是一组临时表 ,(当时是用物理表实现的 )
如果mysql有临时表那就好了?

解决方案 »

  1.   

    MYSQL中有临时表mysql> create TEMPORARY table t_liyihongcug(id int primary key,f1 int);
    Query OK, 0 rows affected (0.08 sec)mysql>
    临时表是基于connection 的,当连接退出,则自然会被删除。不同connection间的临时表也不会相互干扰。
    当您的问题得到解答后请及时结贴.
    http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.html
      

  2.   

    我需要的 不同连接能共享数据的临时表 
    也就是要 相当于 sqlserver的 ##temp 系统临时表
    不知道mysql有没有
      

  3.   

    没有,MYSQL HELP
    You can use the TEMPORARY keyword when creating a table. A TEMPORARY table is visible only to the current connection
    相对独立的