我想从表格#34; hotel"中复制多列(纬度,经度,hotel_name)的数据。并将其粘贴到另一个表格"标记"的列(纬度,经度,名称)。我试图通过使用下面的查询来实现它:
$sql= "INSERT INTO marker (latitude, longitude, name) SELECT latitude, longitude, hotel_name FROM hotel WHERE hotel_name= ".$value." ;";
$ret = $db->query($sql);
运行此查询后,我收到一条错误,说明以下声明:
SQLite3::query(): Unable to prepare statement: 1, near "westin": syntax error
请指导我哪里出错了?提前谢谢。