Whilst I have, thanks to Pieter, begun to get my SQL app working - adding science results from equipment readings at 100 inserts/second, I cannot understand how the standard delphi datacontrols like Tdbmemo and Tdbedit can work with MySQL and without BDE or whatever.
Specifically, I want to create a table containing sample reference data for the science data, which I assume means I will have a master-detail setyp,
Suppose I have a form setup like a browse window, with several separate DBedit, memo components, assigned to the correct datasets
I can fill in data in each component, but isn't that data automatically inserted into the database, so for every data control component I edit I will create a new record in the table, when what I want to do is to take all the data at the same time and write into a single record with a Tmycommand SQL statement ?
Before anyone says "buy a book" I have just spent 100 GBP on MySQL tutorial (MySQL), MySQL cookbook (O'Reilly) and Understanding Delphi2005 (Marco Cantu, Sybex)- All excelllent books, but MySQL DACs clever avoidance of the standard Delphi DB interface makes it hard to see how to transfer to this method of doing things.
Thanks again for your input.
Steve
Delphi 2005 Standard "Data controls"
-
steveastrouk
- Posts: 6
- Joined: Sun 29 Jan 2006 23:47
Hi Again Pieter,GEswin wrote:Well I don't know where you're wrong, but myDac components behave just the same as BDE's TTable/TQuery. Just connect the TMyQuery/TMyTable to a TDataSource, and this one to the DBEdit's, DBMemos, and when you enter anything it will be editing the current record (Or if empty, add a record).
Now I have it. I have to explicitly call the table.insert or table.update methods with some other function, like clicking on a button ?
Thanks
Steve
-
steveastrouk
- Posts: 6
- Joined: Sun 29 Jan 2006 23:47