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
Post a Comment