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 jdbc and its advantages?
What are jdbc?
What is thin driver in jdbc?
Where can I find ojdbc14 jar file?
Where jdbc drivermanager class is used?
Is possible to open a connection to a database with exclusive mode with JDBC?
How can we maintain the integrity of a database by using jdbc?
Under what circumstances, that all four drivers are used?
Name the method, which is used to prepare a callablestatement.
Why is odbc needed?
What is the query used to display all tables names in SQL Server (Query analyzer)?
What is represented by the connection object?
Explain the role of driver in jdbc.
What are the different classes through which JDBC represents statements?
What are different parts of a url?