SQL数据库:CN.execute("If Exists(Select Name from SYSobjects where Name='" & 表名 & "' and Type='U') drop table " & 表名 & " Create table 表名 (...)")类似这样。 最好做成存储过程。
on error resume next cn.execute "DROP TABLE temp"on error goto 0 cn.execute "CREATE TABLE temp(field1 LONG, field2 TEXT, ......)"
最好做成存储过程。
cn.execute "DROP TABLE temp"on error goto 0
cn.execute "CREATE TABLE temp(field1 LONG, field2 TEXT, ......)"