Questions tagged [dbi]

DBI is a database access module for the Perl programming language. It defines a set of methods, variables, and conventions that provide a consistent database interface, independent of the actual database being used. For the equivalent R package, use the tag r-dbi.

When Perl code needs access to a relational database, it usually accomplishes this by using the DBI CPAN module.

DBI's role is similar to that of JDBC for Java, or ODBC, in that it provides a set of common functions, classes and methods used to talk to databases, with a collection of specific backend implementations known as DBI drivers that implement this for particular types of database systems.

These drivers are modules with a name that starts with DBD::.

Many such modules are available on CPAN; popular ones include:

Unrelated tags

Please re-tag questions about the R package for database access with the tag .

1357 questions
-3
votes
1 answer

Can't write an SQLite Query

Using the file posts.csv in the data folder of this repo (the sample of 10,000 public Facebook posts by members of the US congress from 2017), solve the following with dplyr: Do not consider posts with zero likes Compute the comment to like ratio…
Jay
  • 19
  • 7
-3
votes
2 answers

How to extract the dynamically generated access token from the text file in perl?

I am Beginner to perl programming and I want know solution for this problem. I have this below information in the text file called token.txt. I want to extract only dynamically generated access_token value and store that value to mysql database.As…
-3
votes
3 answers

Connecting to a MySQL database using DBI

I am trying to connect to a MySQL database. I found this script and I am trying to use it on my PC and web host, but it doesn't show any output. Please have a look at this code. I am running perl at xampp. #!C:\xampp\perl\bin\perl.exe print…
NIrik Shan
  • 25
  • 1
  • 6
-3
votes
1 answer

Why can't I connect to a database using DBI in my Perl CGI script?

I am trying to integrate CGI with DBI . I am taking the results from the cgi and adding it on to the DBI . But cgi script not able connect to the DBI . Script is mentioned below . The script is not able to connect with DBI as its failing at…
-4
votes
1 answer

Perl API version v5.14.0 of DBI does not match v5.16.0 at /usr/lib64/perl5/DynaLoader.pm

I got this exception when i run a perl script in Linux. I am not an expert in perl, and i have searched for a solution and they all wanted to rebuild/re-install the perl and i do not have an access either. so could anyone tell what to do without…
BDeveloper
  • 1,175
  • 6
  • 24
  • 44
-5
votes
3 answers

Insert local .csv data in remote SQL Server via already working connection string

I am using ODBC and FreeTDS to connect from a linux server to an MS SQL Server 2008 (connection string). I need to get the contents of a local .CSV file on the RHEL-server in a table on the SQL server. However my SQL is a little shabby to say the…
HDemaiter
  • 27
  • 5
-5
votes
1 answer

Why can't I insert HTML into my database?

I have errors when inserting into my database. I have tried everything to sus this. Someone mentioned usind DBI's trace() to track what is going wrong but i cannot make heads or tails of what is going on. Could someone please take a look and see…
Phil Jackson
  • 10,238
  • 23
  • 96
  • 130
1 2 3
90
91