SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2008
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    #1054 MySQL error.

    I am trying to insert records in a table however stand up to
    this bug :
    #1054 - Unknown column 'timestamp,dominio,titolo,descrizione,Keywords,parametri,analytic' in 'field list'.

    The SQL query :
    INSERT INTO `domains` (`timestamp,dominio,titolo,descrizione,Keywords,parametri,analytics,URL,content_by_goo_new,nazione di appartenenza ,city,regione,continente`) VALUES ('11/22/2008 16:02:30,lowcostaustralia.com,\"low_cost_australia, hotel in australia, brisbane, sidney , hotels in australia, low cost\",\"a complete selection of low cost hotel in australia, le offerte alberghiere ed i low cost australiani, hotel a prezzo low cost per l\'australia\",\"last_minute, hotels_low_cost, budget_hotel, budget, auberges, last_minute_australia,low_cost_australia, hotel in australia, low cost alberghi, low, cost, australia, hospedaje\",country=au,ua-6423697-32, http://www.booking.com/country/au.ht...stralia');
    thanks.

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,215
    Mentioned
    58 Post(s)
    Tagged
    3 Thread(s)
    you have an opening backtick without a closing backtick

    here ---> (`timestamp,dominio,titolo,descrizione,Keywords,parametri...

    consequently, it thinks that whole string is a single column name!
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  3. #3
    SitePoint Wizard rguy84's Avatar
    Join Date
    Sep 2005
    Location
    Durham, NC
    Posts
    1,659
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    each field name needs a tick around it. MySql is looking for ONE field named timestamp,dominio,titolo,descrizione,Keywords,parametri,analytics,URL,conten t_by_goo_new,nazione di appartenenza ,city,regione,continente not 13.

    rudy beat me
    Off Topic:

    hat tip to post count
    Ryan B | My Blog | Twitter


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •