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
What is metadata in programming?
Is jdbc a framework?
What are the common jdbc exceptions?
Discuss the procedure of retrieving warnings?
How to check jdbc connection in java?
What are 4 drivers available in JDBC? At what situation are four of the drivers used?
What is drivermanager in jdbc?
Is it possible to connect to multiple databases simultaneously?
Which package contains jdbc api?
Can I enable requests to a jdbc connection pool for a database connection to wait until a connection is available?
What are the steps involved in establishing a connection using jdbc in java?
Give an example for execution of sql statement.
What does adapter class provide?
What is database deadlock ? How can we avoid them?
What is a connection string used for?