2012-03-01 43 views
-3

我有这个疑问误差值数在MySQL

INSERT INTO asterisk.llamadas (
      uniqueid, 
      fecha, 
      origen, 
      destino, 
      tipo, 
      fechaInicioCola, 
      fechaRinging, 
      numeroRingings, 
      fechaAnswered, 
      fechaHungup, 
      tiempoMensaje, 
      tiempoEnCola, 
      tiempoProcesamiento, 
      tiempoRinging, 
      tiempoConversacion, 
      cola, 
      agente, 
      duration, 
      srccanal, 
      dstcanal, 
      status 
      ) 
SELECT 
    uniqueid, 
    fechaAccepting, 
    origen, 
    destino, 
    "Entrante", 
    fechaInicioCola, 
    fechaRinging, 
    numeroRingings, 
    fechaAnswered, 
    fechaHungup, 
    tiempoMensaje, 
    tiempoEnCola, 
    tiempoProcesamiento, 
    tiempoRinging, 
    tiempoConversacion 
    cola, 
    agente, 
    duration, 
    srccanal, 
    dstcanal, 
    status 
    FROM asterisk.entrantes; 

而且我仔细检查过,每场有匹配的东西...但仍然得到

Error Code: 1136. Column count doesn't match value count at row 1 

可能是什么错误?

+0

问题是你看不到丢失的逗号。另外,它不应该是“Entrante”,而不是“Entrante”? – Bohemian 2012-03-01 12:46:41

+0

计算逗号,你错过了一个! – Mithrandir 2012-03-01 12:47:18

+0

@波希米亚的不,不管没关系。你的评论真的很粗鲁。 – 2012-03-01 13:45:32

回答

4

你错过了你的SELECT语句tiempoConversacion后一个逗号......

1

这可能只是

tiempoConversacion 

应该

tiempoConversacion, 

(介意逗号:) )