使用phpadmin在Mysql中创建表

时间:2015-05-30 19:01:36

标签: mysql phpmyadmin create-table

在尝试为我正在构建的数据库创建产品表时,我一直遇到错误。

以下是我尝试过的代码:

strSQL = "UPDATE NOMI SET workername = '" & Me.workername & "', 
dateassigned = #" & Me.dateassigned & "#, actiondate = #" & Now & "#, 
caseid = '" & Me.caseid & "', lastname = '" & Me.lastname & "', 
firstname = '" & Me.firstname & "', Program = '" & Me.program & "', 
language = '" & Me.language & "', Status = '" & Me.Status & "' 
WHERE ((IsNull([caseid]))<>False)"

CurrentDb.Execute strSQL

我收到此错误代码:

  

#1005 - 无法创建表格&te; computer_wholesale.products&#39; (错误:150

非常感谢任何帮助。

1 个答案:

答案 0 :(得分:1)

我相信您的Suppliers表缺少一个索引,这需要使用FOREIGN KEY