Sys.setenv(NLS_LANG="SIMPLIFIED CHINESE_CHINA.AL32UTF8") library("RODBC") channel <- odbcConnect("hrmln",uid="username",pwd="password",DBMSencoding = "UTF-8") mydata <-sqlQuery(channel,'select * from mln_course where rownum <3')原文链接:https://www.f2er.com/oracle/208681.html