Hot Dorkage

überblog geek life, humour, insights, and meta stuff

CommentsPosts
  • Home
  • About
    • MyTwit
    • Privacy
  • Site Map
  • Dorkage+
  • Uncategorized
  • Geek Stuff
    • Hacking and Security
    • Geek Humor
    • SQL
    • Zend Framework
    • Front End Frameworks
  • Fun Web and Blog Goodies
    • Monetizing
  • events
  • Multimedia
  • contest
  • Reviews
  • My Book

MySQL CSV’s with column headings — Part 1

By Colleen, on August 4th, 2009%

mysql In a previous post I discussed the stumbling blocks and security concerns that the mysql documentation doesn’t tell you about having a mysql user create csv files on the filesystem.

I ran into yet another issue. In order to do what I want with these csv’s, they have to have column headers. I thought surely by now MySQL must have come up with some syntax in the query to do this, but Paul DuBois assured us all in a 2006 forum post, that there is no such thing.  I thought maybe Zend Framework might have such a thing in it’s DB class, but I didn’t locate one.  Correct me if I’m wrong–Zend Framework is huge, and I might have missed it.

So, what to do? We have several options:
Continue reading MySQL CSV’s with column headings — Part 1

3 comments - (Comments are closed)   Geek Stuff, Hacking and Security, SQL   cache, CAST, column headers, column heading, CSV, Database Abstraction, dependency injection, describe table, descriptors, FILE permission, length, metadata, MySQL, pear, reflection, system user, truncate, truncation, UNION  

Subscribe!

Email

Articles

Comments

Nuts & Bolts

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Pages

  • About
    • MyTwit
    • Privacy
  • Dorkage+
  • Site Map

Blogroll

  • Geek Roll
  • Inner Circle
  • Tix-Comix

Copyright © 2012 Hot Dorkage - All Rights Reserved
Powered by WordPress & the Atahualpa Theme by BytesForAll. Discuss on our WP Forum