select 表2.customerName,表2.orderID,表2.contentfrom 表1,表2where 表1.customerName=表2.customerName and 表1.customerID=输入的customerID
联合查询就可以