0

我有三个表userstable,user_instrumenttable,instrumentstable
列如下:
users table
-id
-name
-email
-password

user_instrument table
-id
-user_id
-instrument_id

instruments table
-id
-instrument_name

现在,在我的注册表单中,还有姓名、电子邮件、密码等基本字段。我还有一个用户可以选择的工具选项。
每当用户注册时,我想同时插入users tablewithname, email, password字段,而user_instrument tablewithuser_id, instrument_id

我已经阅读了雄辩的关系,但我所有的尝试都太混乱了,根本没有意义。
请跟我裸露:(

4

0 回答 0