I create the tables as follows.
CREATE TABLE photo ( photo_id int NOT NULL PRIMARY KEY, photo_url VARCHAR(200) ); CREATE TABLE article ( date int, text VARCHAR(500), photo_id int, FOREIGN KEY (photo_id) REFERENCES photo(photo_id) ) ENGINE=InnoDB; When populating the tables in the photo_id column, the fields remain NULL. Why doesn’t auto-complete happen?
photo.photo_idproperty for thephoto.photo_idfield - Nofate ♦AUTO_INCREMENTproperty ofphoto.photo_idin thearticle.photo_idcolumnarticle.photo_idvalues are stillNULL- Gareev Denisphotoand expect that something will be added to thearticle? And why on earth? - Alexey Shimanskyphoto_idvalues in thearticletable match one of thephoto_idvalues in thephototable. - Nofate ♦