MySQL: join with special character in column name -


i have column name special character "truck_#". 2 tables "shipment" , other "truck". both have "truck_#" column in common. want perform join on column "truck_#"

i have written query

select * shipment right join truck on shipment.truck_#=truck.truck_# 

it gives me error saying

unknown column name 'shipment.truck_' near on 

i think not taking special character. can tell me how correct it. thanx in advance.

select * shipment right join truck on `shipment`.`truck_#`=`truck`.`truck_#` 

Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -