MySQL插入多個(gè)表?(數(shù)據(jù)庫規(guī)范化?)我試著想辦法insert同一查詢中的多個(gè)表中的信息,但發(fā)現(xiàn)這是不可能的?所以我想insert它簡(jiǎn)單地使用多個(gè)查詢,即;INSERT INTO users (username, password) VALUES('test', 'test')INSERT INTO profiles (userid, bio, homepage) VALUES('[id of the user here?]',
'Hello world!', 'http://www.stackoverflow.com')但是我怎樣才能給出自動(dòng)增量id從users“手冊(cè)”userid為profile桌子?
MySQL插入多個(gè)表?(數(shù)據(jù)庫規(guī)范化?)
天涯盡頭無女友
2019-06-18 16:47:28