Q7:- Choose the correct statement:- Prints the database_information connection = getDbConnection()             test1 =connection.get_server_info()             cursor = connection.cursor()             cursor.execute("select database();")             test2 = cursor.fetchone()             print(test2)             closeDbConnection(connection) Prints the records for the selected database connection = getDbConnection()             test1 = connection.get_server_info()             cursor = connection.cursor()             cursor.execute("select database();")             test2 = cursor.fetchone()             print(test1)             closeDbConnection(connection)   Both None of these

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter13: Views
Section: Chapter Questions
Problem 2MC
icon
Related questions
Question

Q7:-

Choose the correct statement:-

  1. Prints the database_information

connection = getDbConnection()

            test1 =connection.get_server_info()

            cursor = connection.cursor()

            cursor.execute("select database();")

            test2 = cursor.fetchone()

            print(test2)

            closeDbConnection(connection)

  1. Prints the records for the selected database

connection = getDbConnection()

            test1 = connection.get_server_info()

            cursor = connection.cursor()

            cursor.execute("select database();")

            test2 = cursor.fetchone()

            print(test1)

            closeDbConnection(connection)

 

  1. Both
  2. None of these
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Procedures in SQL
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Enhanced Discovering Computers 2017 (Shelly Cashm…
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning