Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在插入语句中识别“网格列”,因为它们是动态创建的,我无法引用这些。当我尝试在网格中添加列时,它们会显示正确的标题,但仍然无法在 INSERT 中引用。“网格”是从 .xls 加载的。
谢谢
您可以参考带有列索引的标签:tblData#1、tblData#2、tblData#3、tblData#4、...等。
其中“tblData”是子表名称,#1、#2、...是列索引。
例子:
Call SqlPrepareAndExecute( hSql, 'insert into TABLE(id, name) values(:tblData#1, :tblData#2)' )