Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is metadata in programming?

941


Is jdbc a framework?

843


What are the common jdbc exceptions?

903


Discuss the procedure of retrieving warnings?

925


How to check jdbc connection in java?

879


What are 4 drivers available in JDBC? At what situation are four of the drivers used?

900


What is drivermanager in jdbc?

915


Is it possible to connect to multiple databases simultaneously?

994


Which package contains jdbc api?

994


Can I enable requests to a jdbc connection pool for a database connection to wait until a connection is available?

841


What are the steps involved in establishing a connection using jdbc in java?

922


Give an example for execution of sql statement.

962


What does adapter class provide?

877


What is database deadlock ? How can we avoid them?

985


What is a connection string used for?

912