Bluehost.com Web Hosting $6.95

selecting field_name() / column_name() for INTO OUTFILE

This is a discussion on selecting field_name() / column_name() for INTO OUTFILE within the MySQL Database forums, part of the Database Forums category; Hi evry1; how can I include the fieldnames as part of a query result? I.e. I would like to ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-23-2007
CVH
 
Posts: n/a
Default selecting field_name() / column_name() for INTO OUTFILE

Hi evry1;

how can I include the fieldnames as part of a query result? I.e. I would
like to add the field names as a first line in a
SELECT INTO OUTFILE
query.

I thought of combining a UNION statement if there is no specific option but
neither way can I find an option or function like column_names() to
accomplish this.

Any ideas anyone? Greatly appreciated.

TIA

CVH
Reply With Quote
  #2 (permalink)  
Old 04-23-2007
strawberry
 
Posts: n/a
Default Re: selecting field_name() / column_name() for INTO OUTFILE

On Apr 23, 9:25 am, CVH <please_do_...@spam.me> wrote:
> Hi evry1;
>
> how can I include the fieldnames as part of a query result? I.e. I would
> like to add the field names as a first line in a
> SELECT INTO OUTFILE
> query.
>
> I thought of combining a UNION statement if there is no specific option but
> neither way can I find an option or function like column_names() to
> accomplish this.
>
> Any ideas anyone? Greatly appreciated.
>
> TIA
>
> CVH


There's instructions on including headers here:

http://dev.mysql.com/doc/refman/5.0/en/select.html

Hope it helps

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:14 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0