-
select `SearchWord` as 'Search Word', `SearchEngine` as 'Search Engine', `DomainName` as 'Domain Name', `Pos` as Position , `Link` as URL, `date` as 'Date Time' UNION select SearchWord,SearchEngine,DomainName,Pos,Link,date into outfile '/root/Desktop/data.csv' fields terminated by ',' from tempsearch;
-
Well i hope title explains the problem.
Tell me what is the problem in this query. Here i'm trying to export mysql data into csv file with header. I've done this before as well, but cant find what is problem in this query. :(
Regards,
RP
1 7538
Hi,
Found the solution. -
select 'SearchWord' as 'Search Word', 'SearchEngine' as 'Search Engine', 'DomainName' as 'Domain Name', 'Pos' as 'Position' , 'Link' as 'URL', 'date' as 'Date Time' UNION select SearchWord,SearchEngine,DomainName,Pos,Link,date from tempsearch into outfile '/root/Desktop/data.csv' fields terminated by ',';
-
Sign in to post your reply or Sign up for a free account.
Similar topics
by: ndsoumah |
last post by:
Hello Guys
I'm trying to run this query
$uneRequete = "SELECT * FROM Usager WHERE motDePasse =
{$loginPassword}";
and I get this error message : Error 1054: Unknown column 'xxxx' in
WHERE...
|
by: Együd Csaba |
last post by:
Hi,
I've a problem with some of my stored procs. My config is: RH7.1, Postgres
7.3.2
I had converted a few fields of a few tables from one type to another and
after this I made all the...
|
by: Peter Frost |
last post by:
Please help
I don't know if this is possible but what I would really like to do is
to use On Error Goto to capture the code that is being executed when
an error occurs.
Any help would be much...
|
by: Nospam |
last post by:
I installed a script that is suppose to accept paypal, however on trying to
test a payment, I get this error msg:
Error
Database access error
and I get this error msg emailed to me:
|
by: Tempo |
last post by:
Hello. I am getting an error and it has gotten me stuck. I think the
best thing I can do is post my code and the error message and thank
everybody in advanced for any help that you give this issue....
|
by: Larry in Honolulu |
last post by:
I'm getting an error message that makes no sense to me. I have a table with a
field named 'testkey' for a list of "keys" in the form of ABC10102. I have a
php variable holding a specific key...
|
by: Peter Nofelt |
last post by:
Hi all,
ISSUE:
====================
In SQL 2005 (sp2) I get the following error when preforming a bulk
insert with an associated xml format file:
"Could not bulk insert. Unknown version of...
|
by: Chran |
last post by:
Hi everybody,
I am working on a search function for an e-commerce site and I just cant figure this one out. It is probably not that hard but I am stuck.
The search is searching three columns in...
|
by: nomad |
last post by:
Hello everyone:
I new to PHP and I'm reading a book on PHP Bibles 2nd edition. It has to deal with a user-rating system. There are 4 scripts to it.
I'm getting an error
Unknown column...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |