我的列名具有特殊字符,例如" TRUCK_#
"。两张桌子" shipment
"和其他是#34; truck
"。两者都有这个" TRUCK_#
"专栏。我想在列#34; TRUCK_#
"
我写了这个查询
SELECT * FROM shipment RIGHT JOIN truck on shipment.TRUCK_#=truck.TRUCK_#
它给我一个错误说
Unknown column name 'shipment.TRUCK_' near ON
我认为它不具备特殊性。谁能告诉我如何纠正它。提前完成。
答案 0 :(得分:4)
SELECT * FROM shipment RIGHT JOIN truck on `shipment`.`TRUCK_#`=`truck`.`TRUCK_#`