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_id
property for thephoto.photo_id
field - Nofate ♦AUTO_INCREMENT
property ofphoto.photo_id
in thearticle.photo_id
columnarticle.photo_id
values are stillNULL
- Gareev Denisphoto
and expect that something will be added to thearticle
? And why on earth? - Alexey Shimanskyphoto_id
values in thearticle
table match one of thephoto_id
values in thephoto
table. - Nofate ♦