mysql选择内连接和插入

时间:2015-01-07 14:20:10

标签: mysql select inner-join

为什么?我认为这是真的但不起作用

INSERT INTO `musteri_order` 
   (`musteri`, 
    `musteri_order`.`user`, 
    `musteri_order`.`support`, 
    `musteri_order`.`order_time`, 
    `musteri_order`.`adet`, 
    `musteri_order`.`adisyon`, 
    `musteri_order`.`adetod`, 
    `musteri_order`.`fiyat_veresiye`) 
select  3, 
        `order`.`user`, 
        `order`.`support`, 
        `order`.`order_time`, 
        `order`.`adet`, 
        `order`.`adisyon`, 
        `order`.`adetod`,
        `support`.`fiyat` 
 from (`order` 
 left join support 
   on(`support`.`support_id`=`order`.`support`)) 
 where `order`.`adisyon`='57'

错误:

  

#1054 - 未知专栏' fiyat'在'字段列表'

表支持

1   support_id  int(11)         
2   support_name    varchar(300)
3   category    int(11)         
4   fiyat   float       
5   printer int(11)     

0 个答案:

没有答案