Insert into a table which has a dash in the name

前端 未结 4 1950
误落风尘
误落风尘 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:22

    Try:

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

提交回复
热议问题