I want to dump single record from mysql table named as table1 for id = 5.
What is mysql query for same?
I think we can use mysqldump but i have used it with full records of table. But how to use it with single record?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
if you check at http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html you will find –where option which is the one you need.
Below follows what is stated in that reference:
Dump only rows selected by the given WHERE condition. Quotes around the condition are mandatory if it contains spaces or other characters that are special to your command interpreter.
Examples: