sql="select Product.*, TypeName.TypeName from Product, TypeName where Product.type = TypeName.type";
sql="select Product.*, StoreName.storename from Product, StoreName where Product.storeid = StoreName.storeid";
这两个语句怎么写在一起?
sql="select Product.*, TypeName.TypeName from Product, TypeName where Product.type = TypeName.type";
sql="select Product.*, StoreName.storename from Product, StoreName where Product.storeid = StoreName.storeid";
这两个语句怎么写在一起?
select Product.*, TypeName.TypeName,StoreName.storename from Product, TypeName where Product.type = TypeName.type and Product.storeid = StoreName.storeid
或者 select Product.*, TypeName.TypeName,StoreName.storename from Product
inner join TypeName on Product.type = TypeName.type
inner join StoreName on Product.storeid = StoreName.storeid
select Product.*, TypeName.TypeName,StoreName.storename from Product, StoreName,TypeName where Product.type = TypeName.type and Product.storeid = StoreName.storeid
这样。。在一起了吧