Insert into a table which has a dash in the name

前端 未结 4 1951
误落风尘
误落风尘 2020-12-07 02:06

I have a table called concept-relation and I want to insert into it.

for ($i = 0; $i < count($sources); $i++) {
    $sourceID = $this->get         


        
4条回答
  •  生来不讨喜
    2020-12-07 02:40

    try this

    $query2 = "INSERT INTO concept-relation (relationID, firstConceptID, secondConceptID)
                    VALUES (:rID, :sID, :dID)";
    

提交回复
热议问题