Hi Matthieu, just have a look into the tutorials section $ROOTSYS/tutorials. There are examples like sqlcreatedb.C, sqlfilldb.C and sqlselect.C for exactly what you want to do ... Greetings, Marc -> -----Original Message----- -> From: Matthieu Guillo [mailto:guillo@jlab.org] -> Sent: Tuesday, August 07, 2001 12:49 AM -> To: roottalk@pcroot.cern.ch -> Subject: [ROOT] accessing MySql -> -> -> Hello Rooters, -> -> I am trying to access a MySQL database through ROOT. I have -> MySQL client -> installed on my machine and I can use Perl to access the -> database I want -> and make some querries but I would like now to do the same -> under ROOT (I -> compiled it with MySql option). -> Does anybody has some examples on how to do that? I would like to -> do very simple things like: -> -> SELECT run, event FROM run_table WHERE run > 1234 AND event < 10; -> -> -> Thanks, -> -> Matthieu Guillo -> University of South Carolina -> Thomas Jefferson National Laboratory -> Office 71 trailer 16 -> Phone: 757-269-5551 ->
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:56 MET