R Language Notes Connection database

Source: Internet
Author: User

1. ODBC interface

Accessing a database through the RODBC package in R is perhaps the most popular way to allow R to connect to any

Having an ODBC-driven database is virtually all the databases on the market.

The first step is to install and configure the appropriate ODBC drivers for your system and database type--they are not part of R

Score of If your machine does not have the necessary drivers installed, search the Internet to find it.

After installing and configuring the driver for the selected database, install the RODBC package. You can use the command

Install.packages ("RODBC") to install it.

2. DBI-related packages

The DBI package provides a common and consistent client interface for accessing the database. The RJDBC package built on top of this framework

Provides a scenario for accessing a database through the JDBC driver. Be sure to install the necessary for your system and database when you use it

JDBC driver. Other useful, DBI-based packages are rmysql, roracle, Rpostgresql, and Rsqlite. These

Packages provide native database drivers for the corresponding database, but may not be available on all systems. For more information, see

The corresponding document on CRAN (http://cran.r-project.org).


R Language Notes Connection database

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.