Gossamer Forum
Home : General : Databases and SQL :

Help with printing to file...

Quote Reply
Help with printing to file...
I am very new to perl and mysql, but I have inherited an online voting program at my college that was written by a student last year. I can telnet into the database and view the tables I need to find out election results, but I think that there must be a way I can print these tables to a file and either convert it to an Exel or Access table (or at least have the information in a .txt file). Is there anything I can add to my

select * from votes;

command to get it to print to a file?



A second question I have is regarding the query of those tables. We have a list of candidates, votes, and logins that we keep. How could I query for people who voted for person A for office A, AND person B for office B. (as opposed to everyone who voted for every office, or people who only voted for a specific office or for a specific person).



Thanks in advance.
Subject Author Views Date
Thread Help with printing to file... Pupator 8132 Sep 12, 2002, 1:12 PM
Post Re: [Pupator] Help with printing to file...
Aki 7816 Sep 12, 2002, 1:34 PM
Thread Re: [Pupator] Help with printing to file...
Stealth 7819 Sep 12, 2002, 3:21 PM
Thread Re: [Stealth] Help with printing to file...
Aki 7873 Sep 12, 2002, 4:40 PM
Thread I agree with the learning curve comment...
Pupator 7901 Sep 12, 2002, 5:11 PM
Thread Re: [Pupator] I agree with the learning curve comment...
Alex 7929 Sep 12, 2002, 5:27 PM
Thread Thanks, but now...
Pupator 7849 Sep 12, 2002, 7:41 PM
Post Re: [Pupator] Thanks, but now...
Stealth 7812 Sep 12, 2002, 7:54 PM