Computing.Net > Forums > Database > can I do this with mysql?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

can I do this with mysql?

Reply to Message Icon

Name: ShaqDiesel
Date: November 5, 2008 at 10:23:37 Pacific
OS: winXP
CPU/Ram: amd64/1Gb
Product: custom
Comment:

in a loop, redirect the output from a select statement to the same file such that the latest results are always appended at the beginning of the file. For example:

select statement one produces: cat
select statement two produces: dog
select statement three produces: tree

my file would end up like:

tree
dog
cat



Sponsored Link
Ads by Google

Response Number 1
Name: FishMonger
Date: November 5, 2008 at 13:04:46 Pacific
Reply:

Yes that can be done, but it would be easier and better to setup your select statement to output in the order that you need.

http://dev.mysql.com/doc/refman/5.0...


0
Reply to Message Icon

Related Posts

See More


Finding top salespeople Checkbox redirect



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Database Forum Home


Sponsored links

Ads by Google


Results for: can I do this with mysql?

Acess 2000 www.computing.net/answers/dbase/acess-2000/145.html

Access calculation www.computing.net/answers/dbase/access-calculation/228.html

Lookup value? www.computing.net/answers/dbase/lookup-value/117.html