1
IM,這是兩個表我有:將數據插入兩個表中?用mysql
posts {id, user_id, post, date}
post_tags {id, tag, post_id(references id in post), user_id}
什麼即時試圖做的是後話了具有#tag,我插在POSTS
表INTIAL職位,並在post_tags
數據桌子,我怎麼能這樣做simlateanously?
P.S.我已經知道如何檢查帖子是否有標籤!我只想進行一下,如何將數據插入兩者!特別是ID,因爲它們是在mysql(autoincrement)中生成的!