Skip to content

Latest commit

 

History

History
11 lines (5 loc) · 924 Bytes

File metadata and controls

11 lines (5 loc) · 924 Bytes

Access-IBM-DB2-on-Cloud-using-Python

This Lab has demonstrated how to create tables in a database, insert some rows of data into the table, invoke SQL queries, and retrieve the query result set.

The ibm_db API provides a variety of useful Python functions for accessing and manipulating data in an IBM® data server database, including functions for connecting to a database, preparing and issuing SQL statements, fetching rows from result sets, calling stored procedures, committing and rolling back transactions, handling errors, and retrieving metadata.

I have import the ibm_db library into my Python Application

The following required modules are pre-installed in the Skills Network Labs environment. However if you run this notebook commands in a different Jupyter environment (e.g. Watson Studio or Ananconda) you may need to install these libraries by removing the # sign before !pip in the code cell below.