हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा १२

Mention the difference between fetchone() and fetchmany(). - Computer Science

Advertisements
Advertisements

प्रश्न

Mention the difference between fetchone() and fetchmany().

अंतर स्पष्ट करें

उत्तर

fetchone() fetchmany()
The fetchone() method returns the next row of a query result set fetchmany() method returns the next number of rows (n) of the result set. 
Example: r = cursor. fetchoneQ Example: r = cursor. fetchmanyQ)
shaalaa.com
SQL Query Using Python
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 15: Data manipulation through SQL - Evaluation [पृष्ठ ३१८]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 12 TN Board
अध्याय 15 Data manipulation through SQL
Evaluation | Q 2. | पृष्ठ ३१८

संबंधित प्रश्न

Which of the following executes the SQL command to perform some action?


The most commonly used statement in SQL is ______


Which of the following clause avoid the duplicate?


Which method is used to fetch all rows from the database table?


What is the use of the Where Clause?


Give a python statement Using the where clause.


Consider the following table Supplier and item. Write a python script for the following Question? 

SUPPLIER
Suppno Name City Icode SuppQty
S001 Prasad Delhi 1008 100
S002 Anu Bangalore 1010 200
S003 Shahid Bangalore 1008 175
S004 Akila Hydrabad 1005 195
S005 Girish Hydrabad 1003 25
S006 Shylaja Chennai 1008 180
S007 Lavanya Mumbai 1005 325

Display Name, City, and Itemname of suppliers who do not reside in Delhi.


Consider the following table Supplier and item. Write a python script for the following Question? 

SUPPLIER
Suppno Name City Icode SuppQty
S001 Prasad Delhi 1008 100
S002 Anu Bangalore 1010 200
S003 Shahid Bangalore 1008 175
S004 Akila Hydrabad 1005 195
S005 Girish Hydrabad 1003 25
S006 Shylaja Chennai 1008 180
S007 Lavanya Mumbai 1005 325

Increment the SuppQty of Akila by 40


Write a Python script to create a table called ITEM with the following specifications.

Add one record to the table.

Name of the database:- ABC

Name of the table:- Item

Column name and specification:-

Icode :- integer and act as primary key
Item Name :- The character with a length of 25
Rate :- Integer
Record to be added :- 1008, Monitor, 15000

The hat is the use of the HAVING clause. Give an example python script.


Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×