MySQL插入多個表?(數據庫規范化?)我試著想辦法insert同一查詢中的多個表中的信息,但發現這是不可能的?所以我想insert它簡單地使用多個查詢,即;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')但是我怎樣才能給出自動增量id從users“手冊”userid為profile桌子?
MySQL插入多個表?(數據庫規范化?)
天涯盡頭無女友
2019-06-18 16:47:28