2012-03-01 37 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, 

(介意逗號:) )