I am new to MySQL and hope everything works out well. I created a database with 3 tables with columns as shown below (PK Primary Keys):
Users table
Directories table
DirInfo table
- infoID (PK)
- the size
- dateofcheck
- exists
- pathID
When I insert NULL values in Directories.pathID, I get a new path identifier (auto increment). How can I insert the same path identifier in DirInfo.pathID?
I need to run multiple queries in INSERT and SELECT so that each column in each table is updated, or I'm doing something wrong.
Mark
source
share