mashagua 发表于 2016-9-22 22:04 
我是不是可以这样理解,tablename必须是数据库里的存在的表,对吗
我印象里不是。 如果table 不存在,就会创建一个。差了一下 Cran 的文档。 貌似跟 Append =T有关。
你试试把Append 去掉
sqlSave saves the data frame dat in the table tablename. If the table exists and has the appropriate
structure it is used, or
else it is created anew. If a new table is created, column names are
remapped by removing any characters which are not alphanumeric or _, and the types are selected
by consulting arguments varTypes and typeInfo, then looking the driver up in the database used
by getSqlTypeInfo or failing that by interrogating sqlTypeInfo.
append logical. Should data be appended to an existing table?