R语言调用sqldf包出现问题

sheepsmile1996 2019-01-19 04:16:54
> name<-c(rep('张三',1,3),rep('李四',3))
> subject<-c('数学','语文','英语','数学','语文','英语')
> score<-c(89,80,70,90,70,80)
> stuid<-c(1,1,1,2,2,2)
> stuscore<-data.frame(name,subject,score,stuid)
> library(sqldf)
> sqldf('select name,sum(score) as allscore from stuscore group by name order by allscore')
错误: Table stuscore exists in database, and both overwrite and append are FALSE
> stuscore
name subject score stuid
1 张三 数学 89 1
2 张三 语文 80 1
3 张三 英语 70 1
4 李四 数学 90 2
5 李四 语文 70 2
6 李四 英语 80 2
...全文
207 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

22,209

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧