How the information about db(database) can be retrieved?

Answer Posted / sushant

Database=MySQLdb.connect(db = Database, user =
DatabaseUser, passwd =
DatabasePassword, host = localhost)
DatabaseCursor = Database.cursor()
DatabaseCursor.execute("SELECT * FROM table1 ORDER BY
field1")
RecordData = DatabaseCursor.fetchone()

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to retrieve warnings in jdbc?

710


What is jdbc driver?

675


What do you mean by metadata and why we are using it?

752


What is the significance of DataBaseMetaData.tableIndexStatistics? How to obtain and use it?

715


Where can I find ojdbc14 jar file?

689


What does setautocommit do?

727


What are the different types of lockings in jdbc?

678


What is jdbc and why is it required?

677


What is resultset in jdbc with example?

674


What is ojdbc14 jar?

657


Explain the various types of locking system in jdbc?

655


What driver should I use for scalable Oracle JDBC applications?

709


What does the connection object represents?

748


What are the functions of the jdbc connection interface?

697


How many packages are available in jdbc api?

738