S
springwater
Unregistered / Unconfirmed
GUEST, unregistred user!
SELECT Customer.CustNo, Customer.Company, Customer.City,
Customer.Country, Orders.OrderNo, Orders.AmountPaid, Employee.LastName,
Employee.FirstName, Employee.Salary, Employee.HireDate,
Employee.PhoneExt, Employee.EmpNo
FROM customer Customer
INNER JOIN [red]orders Orders[/red]
ON (Customer.CustNo = Orders.CustNo)
INNER JOIN employee Employee
ON (Orders.EmpNo = Employee.EmpNo)
李维先生的《Delphi5.X分布式多层应用系统篇》的多表更新一节中,一个
TQuery.SQL中写入了以上SQL语句,作用是连接了三张数据表(DBDEMOS数据
库中)。其中语法挺怪,"FROM","INNER JOIN"后跟的表名为什么要重复两遍
呢?这样写是什么意思呢?
Customer.Country, Orders.OrderNo, Orders.AmountPaid, Employee.LastName,
Employee.FirstName, Employee.Salary, Employee.HireDate,
Employee.PhoneExt, Employee.EmpNo
FROM customer Customer
INNER JOIN [red]orders Orders[/red]
ON (Customer.CustNo = Orders.CustNo)
INNER JOIN employee Employee
ON (Orders.EmpNo = Employee.EmpNo)
李维先生的《Delphi5.X分布式多层应用系统篇》的多表更新一节中,一个
TQuery.SQL中写入了以上SQL语句,作用是连接了三张数据表(DBDEMOS数据
库中)。其中语法挺怪,"FROM","INNER JOIN"后跟的表名为什么要重复两遍
呢?这样写是什么意思呢?