Re: [sqlite] retrieving data from multiple tables

2007-03-14 Thread
Hi Kirrthana, I have created a database with four tables,i have to search and retrieve data from all the four tables based on the entry i get from the previous table and display all the entries,could anybody tell how to do it. I'm not sure what you mean. If you mean you have four tables w

RE: [sqlite] retrieving data from multiple tables

2007-03-14 Thread Kirrthana M
lite-users@sqlite.org Subject: Re: [sqlite] retrieving data from multiple tables Oops, I meant: CREATE VIEW MyTables AS SELECT Field1 AS MyField, otherFields1 FROM MyTable1 UNION ALL SELECT Field2, otherFields2 FROM MyTable2 UNION ALL SELECT Fi

Re: [sqlite] retrieving data from multiple tables

2007-03-14 Thread
Oops, I meant: CREATE VIEW MyTables AS SELECT Field1 AS MyField, otherFields1 FROM MyTable1 UNION ALL SELECT Field2, otherFields2 FROM MyTable2 UNION ALL SELECT Field3, otherFields3 FROM MyTable3 UNION ALL SELECT Field4, otherFields

Re: [sqlite] retrieving data from multiple tables

2007-03-14 Thread
I have four tables like Mytable1,Mytable2,Mytable3,Mytable4 Mytable1 and Mytable2 have one similar field rest al different, Mytable2 and Mytable3 have one similar field rest al different, Mytable3 and Mytable4 have one similar field rest al different, i have to select from four tables by matching

RE: [sqlite] retrieving data from multiple tables

2007-03-13 Thread Kirrthana M
with all these field. -Original Message- From: T&B [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 14, 2007 12:44 PM To: sqlite-users@sqlite.org Subject: Re: [sqlite] retrieving data from multiple tables Hi Kirrthana, > I have created a database with four tables,i have to

Re: [sqlite] retrieving data from multiple tables

2007-03-13 Thread
Hi Kirrthana, I have created a database with four tables,i have to search and retrieve data from all the four tables based on the entry i get from the previous table and display all the entries,could anybody tell how to do it. I'm not sure what you mean. If you mean you have four table

Re: [sqlite] Retrieving data

2006-09-14 Thread Dennis Cote
Richard Stern wrote: Hi all. I'm using sqlite in VC++ 2005. When I started this I knew nothing about sqlite or indeed SQL at all so its been tough going trying to work out how this all works. So far I have created a database and a table and added columns and rows filled with data. But I'm havin

Re: RE: [sqlite] Retrieving data

2006-09-14 Thread thomas . l
Hi Richard >> You don't need a Callback-Function in any case. Try it >> without > I'm confused. > How does the SELECT command return any data? In what > form would it give you this data back? There doesn't seem to > be a pointer to pass by reference and no out variables. The Prepare-Command

RE: [sqlite] Retrieving data

2006-09-14 Thread Richard Stern
> > I tried: > > sqlite3_exec(AccDataBase,"SELECT Name,Address FROM Accounts WHERE > MemberNo = > > 2;",Callback(cError,10,&result,&Names),test,&cDatabaseError); > > You don't need a Callback-Function in any case. Try it > without I'm confused. How does the SELECT command return any data? I

Re: [sqlite] Retrieving data

2006-09-13 Thread thomas . l
Am 14.09.2006 um 02:11 Uhr haben Sie geschrieben: > I'm using sqlite in VC++ 2005. > When I started this I knew nothing about sqlite or indeed SQL at all so its > been tough going trying to work out how this all works. I started so too ;-) > I tried: > sqlite3_exec(AccDataBase,"SELECT Name,A