I have a problem with my sql query in mysql. in sqlite3 and sql server all works.
SELECT `buildings`.*
FROM `buildings`
INNER JOIN "floors"
ON "floors"."building_id" = "buildings"."id"
INNER JOIN "spaces"
ON "spaces".floor_id = "floors".id
maybe i need to process on other way in mysql?
thanks
MySQL treat words in quotes (
"floors") as strings, so those values are NOT used as table/field names. Tryinstead. Backticks around table/field names are required ONLY when the table/field name is a reserved word.
buildingsis not a reserved word, so no backticks are necessary.