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 are the types of statements in jdbc?

986


Differentiate between stored procedure and functions?

1063


What are the steps to connect to the database in java?

982


Which constraint cannot be specified as an explicit constraint and should be specified with the column only ?

936


What are the considerations for deciding on transaction boundaries?

1014


What is jdbc and why is it required?

926


List some new features available in jdbc 4.0?

914


How can I connect mysql or oracle with java?

967


How does jdbc work?

894


How to update a resultset programmatically?

1087


What are the differences between execute, executequery, and executeupdate?

962


Why is jdbc needed?

921


Is jdbc secure?

984


Is jdbc a framework?

911


What is “dirty read” in JDBC? Which isolation level prevents dirty read?

1020