我有一张表file
,此表将记录PDF文件
file
(id
,name
,mime
,size
,data
,created
)
和表studentForm
,只保留文本
studentForm
(firstName
,name
,emailAddress
,fieldStudy
,university
,semester
,linkedin
,number
)
我在PHP中的插入只插入studentForm
表:
$sql = "INSERT INTO studentForm (
firstName,
name,
emailAddress,
fieldStudy,
university,
semester,
linkedin,
number
)
VALUES (
'$firstName',
'$name',
'$emailAddress',
'$fieldStudy',
'$university',
'$semester',
'$linkedin',
'$number'
)";
我想将数据也插入到file
表中。如何以简单的方式执行此JOIN表?