Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with table export.

Status
Not open for further replies.

EdLentz

Technical User
Mar 20, 2002
85
US
I need to export a table and I can't seem to get it right. Here is what I need: All fields separated by a comma , all fields enclosed by "" and if a field has either a Null of a nothing in it I need some kind of character either a 0 or o. I can get some of what I want using PHPMyAdmin but I can't seem to get the rest. Can someone help? Is there another MySql Admin program that will let me manipulate the export?

Thanks
 
select, field1, replace(field2, '', 'o') from table1 into outfile /home/youruser/yourfile.txt fields enclosed by "

or something similar

Cheers

QatQat

Life is what happens when you are making other plans.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top