1. 程式人生 > >求問怎麼解決You have an error in your SQL syntax;

求問怎麼解決You have an error in your SQL syntax;

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1600300306.product product0_ 

sql程式碼為:

select
        product0_.id as id4_,
        product0_.goodsname as goodsname4_,
        product0_.price as price4_ 
    from
        1600300306.product product0_ 
    where
        product0_.id=4

百度了一番都是說哪里哪里寫錯了,但是我並沒有發現自己哪裡寫錯了