Hi - I am something of a newbie and am a little perplexed.  When (trying to)
modify a table I issue the following commands with subsequent errors

sqldf("alter table Korea drop column code", dbname = "mydb")
error in statement: near "drop": syntax error

or

sqldf("alter table Korea rename column hyr to hyrI", dbname = "mydb")
error in statement: near "column": syntax error

These are simple commands - am I missing something obvious?  I can retrieve
data from them, and retrieve their table_info

Thanks

Peter
-- 
View this message in context: 
http://r.789695.n4.nabble.com/sqldf-modify-table-tp2291804p2291804.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to