如何检查一个内存表是否存在? existTable似乎不行...

目的是在代码运行中, 如有临时表(用于记录中间结果)的直接用它, 没有的话由现有的表建一个.

if not(existTable(`tb){
	colname=schema(result02).colDefs.name
	coltype=schema(result02).colDefs.typeString
	tb=table(100:0, colname,coltype);
}
请先 登录 后评论

1 个回答

wale

用objs(true),例如

find(objs(true).name, `tb)
请先 登录 后评论
  • 1 关注
  • 0 收藏,441 浏览
  • Alex 提出于 2023-09-16 23:31