如何避免错误1060?
CREATE VIEW `new-query` AS
SELECT L1.Inv_Num, L1.Line_Num, P1.Prod_SKU, P1.Prod_Descript,
L2.Line_Num, P2.Prod_SKU, P2.Prod_Descript, P1.Brand_ID
FROM LGLINE L1, LGLINE L2, LGPRODUCT P1, LGPRODUCT P2
WHERE P1.Prod_Category IN ('SEALER') AND P2.Prod_Category IN ('TOP COAT');
字符串
1条答案
按热度按时间zbq4xfa01#
相同的列名被指定了两次,所以需要将列名别名为唯一的名称。我只是将l1_、l2_ p1_和p2_添加到出现多次的列中。
字符串