我写下面的代码,我有错误代码:1054。未知栏' referenceinfo.mid'在条款'中
create table newenron as
SELECT employeelist.eid
,employeelist.firstName
,employeelist.lastName
,employeelist.Email_id
,employeelist.status
,message.mid
,message.sender
,message.subject
,message.body
,message.folder
,recipientinfo.rid
,recipientinfo.mid
,recipientinfo.rvalue
,referenceinfo.rfid
,referenceinfo.mid
,referenceinfo.reference
FROM employeelist
INNER JOIN message ON employeelist.Email_id = message.sender
INNER JOIN recipientinfo ON message.mid = referenceinfo.mid
INNER JOIN referenceinfo ON recipientinfo.rid = referenceinfo.rfid
我该如何解决?
谢谢你抽出宝贵的时间。
答案 0 :(得分:1)
您错误拼写了一个列名。但是由此我看不出哪一个。
答案 1 :(得分:0)
下面
public ActionResult Redirect(int id, string url)
{
//Get record using ID, and update Hits column
//Redirect to the final URL
return Redirect(url);
}
您是否正在加入 recipientinfo 表格,但请参考 referenceinfo ?
据我所知,
是两个不同的表格。
你可能想要的是
INNER JOIN recipientinfo ON message.mid = referenceinfo.mid
或
INNER JOIN recipientinfo ON message.mid = recipientinfo.mid