"Grid" table 在 SQL Windows 中的插入语句中

"Grid" table in an insert statement in SQL Windows

如何在动态创建的插入语句中识别 "Grid column" 我无法引用这些。当我尝试在网格中添加列时,它们出现了正确的标题,但仍然无法在 INSERT 中引用。 "Grid" 从 .xls 加载。

谢谢

您可以使用带有列索引的主题标签进行引用: tblData#1、tblData#2、tblData#3、tblData#4、...等等

其中 "tblData" 是 Child Table Name 和 #1, #2,... 是列索引。

示例:

Call SqlPrepareAndExecute( hSql, 'insert into TABLE(id, name) values(:tblData#1, :tblData#2)' )