关于:必须使用同一个别名
建议在使用前先进行判断
if used("myalias1")
&& use in myalias1
&& sele 0
&& use mytable1 alias myalias1
sele myalias1
else
sele 0
use mytable1 alias myalias1
endif
请参考:
1、对于 select .. into cursor ...的情况:
在一个系统中,使用别名的地方很多,建立起别名的规则。
如:select * from myworktable where ... into cursor cursormyworktable
2、对于 select .. into dbf ...的情况:
临时表的名称用sys(2015)来产生
m_tmpcursor = "_" + right(sys(2015),7)
select * from myworktable where ... into dbf (m_tmpcursor)