473,508 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

About LOAD INTO OUTFILE.

7 New Member
Hi,

I had a problem while executing the following query.

select * INTO OUTFILE 'c:\sample.txt' from userAccount;

The query executed fine. But the file is not stored any where?
Acutall where sample.txt? I need ur help.

Thank u
Regards
V. Gokulraj
Aug 28 '06 #1
5 4176
Banfa
9,065 Recognized Expert Moderator Expert
Where (on what computer) is this query executing?
Aug 28 '06 #2
vgokulraj
7 New Member
Hi,
Thank you for reply. Now i got the file. Actully i logged in to another user from my PC.
whenever i execute the query from my pc, the file saved in that user pc(location mysal/data/database folder) not in my pc.

Thanks & Regards
V. Gokulraj
Aug 28 '06 #3
vssp
268 Contributor
Good vgokulraj

Can you send me how to store the field sample.txt?
Aug 28 '06 #4
vgokulraj
7 New Member
Hi,

I don't know to add the fields with "SELECT * INTO OUTFILE FROM TABLE".

The another option load the data into file with fields is using command line.

c:\> mysql -u user_name -p database_name -e "select concat(column1, ',' , column2, ',', colomn3....) as 'column1,column2,column3...' from table" ; >>sample.txt

thank you
V. Gokulraj
Aug 29 '06 #5
vssp
268 Contributor
Thanks gokulraj
Aug 29 '06 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
5643
by: SL_McManus | last post by:
Hi All; I'm fairly new to PERL. The problem I am running into is that I need to chop the last line of the output file and place the count record on that line. As it stands, there is a blank...
1
2714
by: kazack | last post by:
Hi all it's me again with another question as I got further in my book. The chapter I am in covers structres, abstract data and classes. I only read through to the end of the coverage on...
0
1845
by: Rajesh Kapur | last post by:
Hello, I am running MySQL 4.0.16. I get the error 'The used command is not allowed with this MySQL version' when using the 'load data local infile' command. The local_infile is ON; the select *...
2
1631
by: solartimba | last post by:
Hi, I am in another country, and I need to finish a program. But I do not have any reference books. Can you tell me how to print this to a file without ending the stream with an endl. Stated...
1
16048
by: Ray in HK | last post by:
What are the differences between LOAD DATA INFILE and LOAD DATA LOCAL INFILE ? I found some web hosting company do not allow using LOAD DATA INFILE but allow LOAD DATA LOCAL INFILE. The reason...
3
2940
by: pmiller | last post by:
I ported my code from the development to application platform, I found a "type error" on a fileout statement: outfile.write(object.id +",") Object.id is provided by a library routine that is...
2
5204
by: varusnyc | last post by:
Hello, Im having really hard time writing an Employee Payroll program that uses functions to read data from file then send all data to another file. I managed to construct some pieces of the code,...
7
1775
by: rhitz1218 | last post by:
All: I'm trying to create a log file. I now I can be able to do that by doing the following: FILE *outfile; outfile = fopen("log.txt", "w"); fprintf("This is the text");
2
3714
by: reyalp | last post by:
I use C++ Builder to create a simple project that can open a picture and save some text information to a file My question is that: After I execute the open picture dialog(btn_OpenPicture) and...
0
7114
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7321
Oralloy
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,...
1
7034
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7488
tracyyun
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...
0
5623
agi2029
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,...
1
5045
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1544
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.