Dismiss
Announcing Stack Overflow Documentation

We started with Q&A. Technical documentation is next, and we need your help.

Whether you're a beginner or an experienced developer, you can contribute.

Sign up and start helping → Learn more about Documentation →

MYsqldb is returning 1L when executing this:-

db=MySQLdb.connect('localhost','root','12345678','kitkat')
cur=db.cursor()
cur.execute("INSERT INTO justdial(id,email_raw,status) VALUES (NULL,'none','none')")
share|improve this question
3  
returning WHERE? on the connect line? on the execute line? – Marc B yesterday
    
And why do you think that is an error? – Daniel Roseman yesterday
    
Because data is not getting inserted into db – Harshit_Rana yesterday

If you are getting no errors Try adding db.commit after your execute

I personally prefer mysql.connector.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.