如果能用,怎么用,我在很二个函数中怎么引用这个全局变量?

解决方案 »

  1.   

    不是说了你不要用全局变量吗??
    你这样:
    create f..
    as
    begin
      create ##temp
      insert ##temp values ....
    endcreate f....
    as
    begin
      select * from ##temp....
      drop table ##temp
    end
      

  2.   

    如果那么不可以,那么全局变量还有什么用?只为系统用吗?
      

  3.   

    是的!系统用的!
    你用全局临时表是一样的,且能存储多值!