I have on one of our servers an MySQL database. I'm attempting to build a front end in Delphi for people to access and modify it. There are two tables in the db that I have joined in one sqlquery object in delphi, I then have one datasource connected to the query. The tables are information on projects, one table being general information about the project, the other is detailed information about plan approvals and the like. The detail table is set up so that each project has a number of different "items" such as plan approvals and inspections, and also dates, user who entered, and comments. A user needs to be able to add "items" from a list in the event that a new plan or inspection are required.
My problem(s) is that I need to view data from both tables, and update the data from the form. I'm not an SQL expert by any means, I took these classes in college but I'm getting rusty. I'm not entirely sure how to update, add or delete records in delphi using sql.
My plan is to have a search for a project number, then a list of matching records, select from that list, and then be able to add/update from there.
I just need to know how to put sql statments in code(buttons) and use that to update/edit the tables in the MySQL database.
I know it's an awful lengthy and broad question, but I would greatly appreciate any help at all. Just little hints could bring back some memory from school
I've done this all before at one point or another...but this is what happens when you get old I guess
Thanks,
Jonah
My problem(s) is that I need to view data from both tables, and update the data from the form. I'm not an SQL expert by any means, I took these classes in college but I'm getting rusty. I'm not entirely sure how to update, add or delete records in delphi using sql.
My plan is to have a search for a project number, then a list of matching records, select from that list, and then be able to add/update from there.
I just need to know how to put sql statments in code(buttons) and use that to update/edit the tables in the MySQL database.
I know it's an awful lengthy and broad question, but I would greatly appreciate any help at all. Just little hints could bring back some memory from school
Thanks,
Jonah