当前位置: 代码迷 >> VFP >> []可以用变量来表示表的名称么
  详细解决方案

[]可以用变量来表示表的名称么

热度:3251   发布时间:2013-02-26 00:00:00.0
[求助]可以用变量来表示表的名称么?
比如:tablename="新表"
  copy stru to tablename
  或
  select * from tablename

这样的!

------解决方案--------------------------------------------------------
tablename="新表"
copy stru to '&tablename.'

select * from '&tablename.'



copy stru to (tablename)

select * from (tablename)

  相关解决方案