嘿,朋友们,我要建一个网站的人决定设计他们自己的数据库。他们使用Microsoft SQL Server Management Studio来构建它等等。现在,他们已经完成了对数据库的处理,并将其导出到一个文本文件(Tasks -> Generate Scripts)。现在,当我尝试将文件导入phpmyadmin时,我得到以下错误:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax
我们有一个包含两个表的MySQL数据库: Warehouse和Crate
Warehouse:
WarehouseID (primary key)
Location (varchar)
Crate:
CrateID (primary key)
Warehouse (foreign key to a Warehouse record)
Max_Capacity (int) (the amount of boxes that can be packed into a crate)
我想写一个查询,返回每个仓库所有板条箱的max_capacity之和。我在重复条目和内部连接方面遇到了问题,所以我希