求助:excel 表中有一列单元格格式是自定义,在导入到vfp9.0的数据表时表的对应列的类型应该选什么类型?
excel 表中有一列单元格格式是自定义(yyyy-m-d h:mm:ss),在导入到vfp9.0的数据表时表的对应列的类型应该选什么类型?
SET DATE TO ANSI SET CENTURY ON cDefPath = ADDBS(JUSTPATH(SYS(16))) xls = cDefPath + "项目.XLS" oExcel = CREATEOBJECT('Excel.Application') oExcel.DisplayAlerts = 0 oExcel.WorkBooks.Open(xls) cmd = "CREATE CURSOR tt (" + oExcel.Range("R1").Value + " T," + oExcel.Range("T1").Value + " T)" EXECSCRIPT(cmd) INSERT INTO tt VALUES (oExcel.Range("R2").Value, oExcel.Range("T2").Value) oExcel.WorkBooks.Close oExcel.Quit SELECT * FROM tt
[此贴子已经被作者于2021-9-18 14:47编辑过]