| List: | MySQL++ | « Previous MessageNext Message » | |
| From: | Adrian Cornish | Date: | January 3 2011 9:19pm |
| Subject: | Re: Initialization of a Query object. | ||
| View as plain text | |||
On Mon, Jan 3, 2011 at 11:40 AM, Eric Sepich <sepich.eric@stripped> wrote: > In the code below is the '= conn.query();' essential? From reading the > manual I know that a query can be placed inside quotes in conn.query() and > a > Query object is returned. > > Query queryb = conn.query(); > queryb << "SELECT * FROM sports_program where tf_database_key like 'SP%' > and > tf_game_date='"<<todaysdate<<"'"; > StoreQueryResult qsports_program=queryb.store(); > It is if you want your code to actually query the db. Otherwise how will the query object know which database connection to send the query too. Adrian
| Thread | ||
|---|---|---|
| • Initialization of a Query object. | Eric Sepich | 3 Jan |
| • Re: Initialization of a Query object. | Jonathan Wakely | 3 Jan |
| • Re: Initialization of a Query object. | Tomalak Geret'kal | 3 Jan |
| • Re: Initialization of a Query object. | Jonathan Wakely | 3 Jan |
| • Re: Initialization of a Query object. | Warren Young | 3 Jan |
| • Re: Initialization of a Query object. | Eric Sepich | 3 Jan |
| • Re: Initialization of a Query object. | Warren Young | 3 Jan |
| • Re: Initialization of a Query object. | Tomalak Geret'kal | 4 Jan |
| • Re: Initialization of a Query object. | Jonathan Wakely | 4 Jan |
| • Re: Initialization of a Query object. | Eric Sepich | 4 Jan |
| • Re: Initialization of a Query object. | Tomalak Geret'kal | 4 Jan |
| • Re: Initialization of a Query object. | Adrian Cornish | 3 Jan |
